Compare commits
8 Commits
18f2e4d93a
...
e7756a2959
| Author | SHA1 | Date | |
|---|---|---|---|
| e7756a2959 | |||
| 68fa0d8c89 | |||
| b9c7c099e7 | |||
| e62790f2c7 | |||
| 3d36eb305e | |||
| 0952bfd827 | |||
| c6671fea4e | |||
| 55b3fde362 |
35
README.md
35
README.md
@@ -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
|
||||||
|
```
|
||||||
|
|||||||
@@ -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 ""
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Tiny Vim update helper
|
|
||||||
|
|
||||||
nvim +PlugUpgrade +PlugUpdate +CocUpdate
|
|
||||||
6
flake.lock
generated
6
flake.lock
generated
@@ -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": {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
5
home/modules/audio/default.nix
Normal file
5
home/modules/audio/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [ pulsemixer ];
|
||||||
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|||||||
@@ -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
|
||||||
|
;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user