mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-01-31 08:30:25 +00:00
Compare commits
3 commits
6dac0d7b13
...
6d0b5f7711
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d0b5f7711 | |||
| 8442a022bb | |||
| 28e3903c3e |
11 changed files with 43 additions and 21 deletions
1
.envrc
1
.envrc
|
|
@ -1,2 +1 @@
|
||||||
use flake
|
use flake
|
||||||
PATH_add bin
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ My personal NixOS and home-manager configurations.
|
||||||
```sh
|
```sh
|
||||||
nix develop
|
nix develop
|
||||||
|
|
||||||
deploy-nixos # Rebuild and switch the current NixOS system on this host
|
just deploy-nixos # Rebuild and switch the current NixOS system on this host
|
||||||
deploy-home # Apply Home Manager configuration for the current user
|
just deploy-home # Apply Home Manager configuration for the current user
|
||||||
deploy-vps # Rebuild and switch NixOS on the remote VPS
|
just deploy-vps # Rebuild and switch NixOS on the remote VPS
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# vim: ft=sh
|
|
||||||
|
|
||||||
home-manager switch --flake .#$USER@$(hostname)
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# vim: ft=sh
|
|
||||||
|
|
||||||
sudo nixos-rebuild switch --flake .#$(hostname)
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# vim: ft=sh
|
|
||||||
|
|
||||||
nixos-rebuild switch --flake .#vps --target-host root@vps
|
|
||||||
|
|
@ -89,11 +89,8 @@
|
||||||
pkgs.sops
|
pkgs.sops
|
||||||
pkgs.git
|
pkgs.git
|
||||||
pkgs.git-crypt
|
pkgs.git-crypt
|
||||||
|
pkgs.just
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
|
||||||
export PATH=${builtins.toPath ./bin}:$PATH
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
12
home/modules/graphical/udiskie.nix
Normal file
12
home/modules/graphical/udiskie.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.udiskie = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
programs_options = {
|
||||||
|
file_manager = "${pkgs.xfce.thunar}/bin/thunar";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -8,5 +8,6 @@
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./zerotierone.nix
|
./zerotierone.nix
|
||||||
|
./udisks2.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --remember-session";
|
command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --remember-session";
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
useTextGreeter = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
hosts/nixos/modules/services/udisks2.nix
Normal file
3
hosts/nixos/modules/services/udisks2.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
services.udisks2.enable = true;
|
||||||
|
}
|
||||||
21
justfile
Normal file
21
justfile
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env -S just --justfile
|
||||||
|
|
||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
deploy-nixos:
|
||||||
|
sudo nixos-rebuild switch --flake .#$(hostname)
|
||||||
|
|
||||||
|
deploy-vps:
|
||||||
|
nixos-rebuild switch --flake .#vps --target-host root@vps
|
||||||
|
|
||||||
|
deploy-home:
|
||||||
|
home-manager switch --flake .#$USER@$(hostname)
|
||||||
|
|
||||||
|
update:
|
||||||
|
nix flake update --commit-lock-file
|
||||||
|
|
||||||
|
gc:
|
||||||
|
nix-collect-garbage -d
|
||||||
|
nix-collect-garbage --delete-older-than 7d
|
||||||
|
nix-store --gc
|
||||||
Loading…
Add table
Add a link
Reference in a new issue