From 22c5b6f8265bd81a0485428af22d856756fabeb5 Mon Sep 17 00:00:00 2001 From: Greg Leyda Date: Sun, 10 Jul 2022 15:36:37 -0400 Subject: [PATCH] added missing files --- nur.nix | 6 ++++++ scripts/apply-system.sh | 2 ++ scripts/apply-users.sh | 5 +++++ scripts/clean.sh | 3 +++ scripts/update-system.sh | 2 ++ 5 files changed, 18 insertions(+) create mode 100644 nur.nix create mode 100755 scripts/apply-system.sh create mode 100755 scripts/apply-users.sh create mode 100755 scripts/clean.sh create mode 100755 scripts/update-system.sh diff --git a/nur.nix b/nur.nix new file mode 100644 index 0000000..dbfcc7d --- /dev/null +++ b/nur.nix @@ -0,0 +1,6 @@ +{config, ...}: +{ + environment.systemPackages = [ + config.nur.repos.instantos.spotify-adblock + ]; +} diff --git a/scripts/apply-system.sh b/scripts/apply-system.sh new file mode 100755 index 0000000..3e009af --- /dev/null +++ b/scripts/apply-system.sh @@ -0,0 +1,2 @@ +#!/bin/sh +sudo nixos-rebuild switch --flake /etc/nixos/# diff --git a/scripts/apply-users.sh b/scripts/apply-users.sh new file mode 100755 index 0000000..d5125a5 --- /dev/null +++ b/scripts/apply-users.sh @@ -0,0 +1,5 @@ +#!/bin/sh +cd /etc/nixos/scripts +nix build /etc/nixos/#homeManagerConfiguration.gerg.activationPackage +/etc/nixos/scripts/result/activate +rm -rf /etc/nixos/scripts/result diff --git a/scripts/clean.sh b/scripts/clean.sh new file mode 100755 index 0000000..42f4a60 --- /dev/null +++ b/scripts/clean.sh @@ -0,0 +1,3 @@ +#!/bin/sh +nix-collect-garbage -d +nix-store --gc diff --git a/scripts/update-system.sh b/scripts/update-system.sh new file mode 100755 index 0000000..efc3f93 --- /dev/null +++ b/scripts/update-system.sh @@ -0,0 +1,2 @@ +#!/bin/sh +nix flake update /etc/nixos/#