Compare commits

..

8 Commits

14 changed files with 68 additions and 22 deletions

View File

@@ -1,15 +1,36 @@
# NixOS flake # NixOS flake
## Set up virtual machine ([`disko`](https://github.com/nix-community/disko/blob/master/docs/interactive-vm.md)) ## hosts
1. Build the virtual machine ### NixOS
```
nixos-rebuild switch --flake .#<hostname>
```
### home manager
```
home-manager switch --flake .#work
```
### virtual machines
``` ```
nix build -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko' nix build -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko'
```
2. Run the virtual machine
```
./result/bin/disko-vm ./result/bin/disko-vm
``` ```
## deploy using colmena
```
colmena apply
```
## SD installer images
```
nix build .#images.sd-image-orange-pi-aarch64
nix build .#images.sd-image-raspberry-pi-aarch64
```

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
[ -f "/tmp/pomo" ] && cat /tmp/pomo || echo "" [ -f "/home/h/.local/share/pomo" ] && cat /home/h/.local/share/pomo || echo ""

View File

@@ -1,5 +0,0 @@
#!/usr/bin/env bash
# Tiny Vim update helper
nvim +PlugUpgrade +PlugUpdate +CocUpdate

6
flake.lock generated
View File

@@ -344,11 +344,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1771647911, "lastModified": 1771683283,
"narHash": "sha256-18liNHHwOmcaKCpOptE3wLW97fm5v7RTLiZBecX7km0=", "narHash": "sha256-WxAEkAbo8dP7qiyPM6VN4ZGAxfuBVlNBNPkrqkrXVEc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "436b27742c996b75e2baf8e835e3b3eae0c9fbd4", "rev": "c6ed3eab64d23520bcbb858aa53fe2b533725d4a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -10,7 +10,9 @@ let
in in
{ {
imports = [ imports = [
../../modules
../../modules/ai-tools.nix ../../modules/ai-tools.nix
../../modules/audio
../../modules/cloud ../../modules/cloud
../../modules/comms ../../modules/comms
../../modules/desktop/niri ../../modules/desktop/niri

View File

@@ -9,8 +9,9 @@ let
in in
{ {
imports = [ imports = [
../../modules/lib.nix ../../modules
../../modules/ai-tools.nix ../../modules/ai-tools.nix
../../modules/audio
../../modules/anki.nix ../../modules/anki.nix
../../modules/cloud ../../modules/cloud
../../modules/comms ../../modules/comms

View File

@@ -11,6 +11,7 @@ in
{ {
imports = [ imports = [
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
../../modules
../../modules/stylix.nix ../../modules/stylix.nix
../../modules/lib.nix ../../modules/lib.nix
../../modules/ai-tools.nix ../../modules/ai-tools.nix

View File

@@ -0,0 +1,5 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ pulsemixer ];
}

View File

@@ -1,7 +1,9 @@
{ {
config, config,
inputs, inputs,
lib,
pkgs, pkgs,
...
}: }:
let let

View File

@@ -11,6 +11,13 @@
programs.firefox = { programs.firefox = {
enable = true; enable = true;
} }
// (import ./firefox-base.nix { inherit config inputs pkgs; }); // (import ./firefox-base.nix {
inherit
config
inputs
lib
pkgs
;
});
}; };
} }

View File

@@ -13,6 +13,13 @@
programs.librewolf = { programs.librewolf = {
enable = true; enable = true;
} }
// (import ./firefox-base.nix { inherit config inputs pkgs; }); // (import ./firefox-base.nix {
inherit
config
inputs
lib
pkgs
;
});
}; };
} }

View File

@@ -36,7 +36,6 @@ in
../../modules/fonts ../../modules/fonts
../../modules/ssh/hardened-openssh.nix ../../modules/ssh/hardened-openssh.nix
../../modules/stylix ../../modules/stylix
# ../../modules/vpn/wireguard.nix
(import ../../modules/secrets { inherit lib inputs config; }) (import ../../modules/secrets { inherit lib inputs config; })
../../modules/docker ../../modules/docker
../../modules/syncthing ../../modules/syncthing

View File

@@ -31,8 +31,14 @@ in
home-manager.sharedModules = [ home-manager.sharedModules = [
{ {
stylix.targets = { stylix.targets = {
firefox.profileNames = [ "default" ]; firefox = {
librewolf.profileNames = [ "default" ]; profileNames = [ "default" ];
colorTheme.enable = true;
};
librewolf = {
profileNames = [ "default" ];
colorTheme.enable = true;
};
kitty.variant256Colors = true; kitty.variant256Colors = true;
gnome.enable = false; gnome.enable = false;
gtk.enable = false; gtk.enable = false;