Compare commits
5 Commits
724c63f9ff
...
85f7a2889c
| Author | SHA1 | Date | |
|---|---|---|---|
| 85f7a2889c | |||
| 6bfea61ffe | |||
| 4e0cc2a322 | |||
| 7ef99c8dd1 | |||
| 1655c0a867 |
@@ -26,6 +26,8 @@ echo "files:"
|
||||
git status --short
|
||||
read -rp "commit message: " commit_msg
|
||||
echo "rebuilding nixos with flake.nix..."
|
||||
#if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
|
||||
#if ! nh os switch 2>&1 | tee "$logfile"; then
|
||||
if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
|
||||
echo "rebuild failed; exited with no commit"
|
||||
exit 1
|
||||
|
||||
@@ -91,6 +91,10 @@
|
||||
command = "/run/current-system/sw/bin/tailscale";
|
||||
options = ["NOPASSWD"];
|
||||
}
|
||||
{
|
||||
command = "/etc/profiles/per-user/blake/bin/nom";
|
||||
options = ["NOPASSWD"];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
./gpg
|
||||
./git
|
||||
./xdg
|
||||
./nh
|
||||
];
|
||||
|
||||
dots = {
|
||||
@@ -24,6 +25,7 @@
|
||||
gpg.enable = lib.mkDefault true;
|
||||
git.enable = lib.mkDefault true;
|
||||
xdg.enable = lib.mkDefault true;
|
||||
nh.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
|
||||
|
||||
24
users/blake/dots/core/nh/default.nix
Normal file
24
users/blake/dots/core/nh/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
program = "nh";
|
||||
cfg = config.dots.${program};
|
||||
home_dir = config.home.homeDirectory;
|
||||
in {
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
flake = "${home_dir}/.nix";
|
||||
};
|
||||
|
||||
# add deps to userspace cause they are cool
|
||||
home.packages = with pkgs; [nix-output-monitor nvd];
|
||||
};
|
||||
}
|
||||
22
users/blake/dots/programs/_gaming/default.nix
Normal file
22
users/blake/dots/programs/_gaming/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.dots.gaming;
|
||||
in {
|
||||
imports = [
|
||||
./slippi
|
||||
];
|
||||
|
||||
options.dots.gaming = {
|
||||
enable = lib.mkEnableOption "enables all programs by default";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
dots = {
|
||||
slippi.enable = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -9,6 +9,7 @@ in {
|
||||
imports = [
|
||||
./_media-tools
|
||||
./_browsers
|
||||
./_gaming
|
||||
|
||||
./thunderbird
|
||||
./libreoffice
|
||||
@@ -18,7 +19,6 @@ in {
|
||||
./zathura
|
||||
./discord
|
||||
|
||||
./slippi
|
||||
];
|
||||
|
||||
options.dots.programs = {
|
||||
@@ -29,6 +29,7 @@ in {
|
||||
dots = {
|
||||
media-tools.enable = lib.mkDefault true;
|
||||
browsers.enable = lib.mkDefault true;
|
||||
gaming.enable = lib.mkDefault true;
|
||||
|
||||
thunderbird.enable = lib.mkDefault true;
|
||||
libreoffice.enable = lib.mkDefault true;
|
||||
@@ -37,9 +38,6 @@ in {
|
||||
bitwarden.enable = lib.mkDefault true;
|
||||
discord.enable = lib.mkDefault true;
|
||||
zathura.enable = lib.mkDefault true;
|
||||
|
||||
slippi.enable = lib.mkDefault true;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user