Compare commits
3 commits
2b9b157679
...
e2f5407c75
Author | SHA1 | Date | |
---|---|---|---|
|
e2f5407c75 | ||
|
6e2d30751b | ||
|
a2dc4024e0 |
|
@ -6,14 +6,15 @@ The canonical location for this repository is https://git.qenya.tel/qenya/nixfil
|
||||||
|
|
||||||
## Machines
|
## Machines
|
||||||
|
|
||||||
### In this config
|
### Managed
|
||||||
* `tohru`: Dell Latitude 5300, personal laptop
|
* `tohru`: Dell Latitude 5300, personal laptop
|
||||||
* `yevaud`: Oracle Cloud free AMD VM, hosts a Forgejo instance
|
* `yevaud`: Oracle Cloud free AMD VM, hosts a Forgejo instance and WireGuard server for the other machines in the network
|
||||||
* `orm`: Oracle Cloud free AMD VM, WireGuard server for the other machines in the network
|
* `orm`: Oracle Cloud free AMD VM, currently idling
|
||||||
|
|
||||||
### Referenced only
|
### Referenced only
|
||||||
* `kilgharrah`: Custom-built personal desktop, currently running Arch
|
* `kilgharrah`: Custom-built personal desktop, currently running Arch
|
||||||
* `shaw`: [My girlfriend's NAS](https://github.com/randomnetcat/nix-configs/tree/main/hosts/shaw)
|
* `shaw`: [My girlfriend's NAS](https://github.com/randomnetcat/nix-configs/tree/main/hosts/shaw)
|
||||||
|
* `latias`: My Steam Deck
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
11
hive.nix
11
hive.nix
|
@ -59,4 +59,15 @@ in {
|
||||||
./hosts/orm/configuration.nix
|
./hosts/orm/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
kalessin = { name, nodes, ... }: {
|
||||||
|
networking.hostId = "534b538e";
|
||||||
|
time.timeZone = "Etc/UTC";
|
||||||
|
deployment.buildOnTarget = true;
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./deployment/remote.nix
|
||||||
|
./hosts/kalessin/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
12
hosts/kalessin/configuration.nix
Normal file
12
hosts/kalessin/configuration.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
}
|
52
hosts/kalessin/hardware-configuration.nix
Normal file
52
hosts/kalessin/hardware-configuration.nix
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_scsi" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "rpool_kalessin/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "rpool_kalessin/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var" =
|
||||||
|
{ device = "rpool_kalessin/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/data" =
|
||||||
|
{ device = "rpool_kalessin/data";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2ADE-A033";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp0s6.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
|
}
|
|
@ -11,12 +11,41 @@
|
||||||
settings = {
|
settings = {
|
||||||
devices = {
|
devices = {
|
||||||
"kilgharrah" = { id = "RDT7IGD-76FZ6LY-37PPB2W-DWPQRPR-LZ4AXF7-4GIIHYJ-RVXUUSG-ZXPN3AZ"; };
|
"kilgharrah" = { id = "RDT7IGD-76FZ6LY-37PPB2W-DWPQRPR-LZ4AXF7-4GIIHYJ-RVXUUSG-ZXPN3AZ"; };
|
||||||
|
"latias" = { id = "EN4W2SB-LB4AAZQ-6AQIE7G-S3BSCSP-V2EUNMM-KAQEHW3-PPAPGBO-PXRPWAL"; };
|
||||||
|
"shaw" = { id = "NC7WMZS-GQETJYR-IAYGD65-GHTSTVP-VAAG43K-W7N3LO5-C5OQMZ2-DTK6YA7"; };
|
||||||
};
|
};
|
||||||
folders = {
|
folders = {
|
||||||
|
"Sync" = {
|
||||||
|
id = "uln2v-zwzwj";
|
||||||
|
path = "~/Sync";
|
||||||
|
devices = [ "kilgharrah" "shaw" ];
|
||||||
|
};
|
||||||
|
|
||||||
"Documents" = {
|
"Documents" = {
|
||||||
id = "alp59-7gs9s";
|
id = "alp59-7gs9s";
|
||||||
path = "~/Documents";
|
path = "~/Documents";
|
||||||
devices = [ "kilgharrah" ];
|
devices = [ "kilgharrah" "shaw" ];
|
||||||
|
};
|
||||||
|
"Music" = {
|
||||||
|
id = "7xvkf-y62s7";
|
||||||
|
path = "~/Music";
|
||||||
|
devices = [ "kilgharrah" "shaw" ];
|
||||||
|
};
|
||||||
|
"Pictures" = {
|
||||||
|
id = "tbmhx-ep7wk";
|
||||||
|
path = "~/Pictures";
|
||||||
|
devices = [ "kilgharrah" "shaw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"ES-DE" = {
|
||||||
|
id = "c1cbh-llw94";
|
||||||
|
path = "~/ES-DE";
|
||||||
|
devices = [ "kilgharrah" "latias" "shaw" ];
|
||||||
|
};
|
||||||
|
"ROMs" = {
|
||||||
|
id = "dcze4-v6act";
|
||||||
|
path = "~/ROMs";
|
||||||
|
devices = [ "kilgharrah" "latias" "shaw" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
"url": "https://git.qenya.tel/qenya/birdsong.git"
|
"url": "https://git.qenya.tel/qenya/birdsong.git"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "752faa333d5686b5457e6c956d015bd6ec4e3eca",
|
"revision": "2fd6d96a00ef69a2afe72a2fe9d18d759c1cc8f3",
|
||||||
"url": null,
|
"url": null,
|
||||||
"hash": "1zl4zwkqapwmghbmzcpfzm4sfmmfxvp8j5bk241zmkvi8frlx1jf"
|
"hash": "100l0mjfikv3sjphjb9aw2qhvqz7p616px1rl2gm1f5z9iljy7fp"
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -46,15 +46,15 @@
|
||||||
"repo": "nix-vscode-extensions"
|
"repo": "nix-vscode-extensions"
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"revision": "500be2a1404429cfccdb4bf71e515cc38f206a25",
|
"revision": "7270c841614adb30d02e97cdb1a81e3757cef092",
|
||||||
"url": "https://github.com/nix-community/nix-vscode-extensions/archive/500be2a1404429cfccdb4bf71e515cc38f206a25.tar.gz",
|
"url": "https://github.com/nix-community/nix-vscode-extensions/archive/7270c841614adb30d02e97cdb1a81e3757cef092.tar.gz",
|
||||||
"hash": "0w01kcnjpwb9zfsw066lnq0l84w28nbryfrdbddnl768l30rbz63"
|
"hash": "0y86hbymlz41vmgs9h1f2lgyb8vlchvdrgrx1jpw9brfshnxy6d6"
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"type": "Channel",
|
"type": "Channel",
|
||||||
"name": "nixos-24.05",
|
"name": "nixos-24.05",
|
||||||
"url": "https://releases.nixos.org/nixos/24.05/nixos-24.05.3268.d0907b75146a/nixexprs.tar.xz",
|
"url": "https://releases.nixos.org/nixos/24.05/nixos-24.05.3787.a781ff33ae25/nixexprs.tar.xz",
|
||||||
"hash": "1j40g3ms1pqldmx9pfhw4mslhxnrnklj0phwhzgk5g3m5hczb1j6"
|
"hash": "1kjpxcxgf9nd6a18kdq5y2l379mb1rg57imxdx46rbl0aif7w12x"
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -64,9 +64,9 @@
|
||||||
"repo": "NUR"
|
"repo": "NUR"
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"revision": "f769fc25d19d5521a997686ffd66c08a3d23334f",
|
"revision": "a4f1c6cf98a629c082edc90fd84be7cc4525e244",
|
||||||
"url": "https://github.com/nix-community/NUR/archive/f769fc25d19d5521a997686ffd66c08a3d23334f.tar.gz",
|
"url": "https://github.com/nix-community/NUR/archive/a4f1c6cf98a629c082edc90fd84be7cc4525e244.tar.gz",
|
||||||
"hash": "1jrllqirq1jig9v7f7r9h5jmywcia7h7qdfn58z8gq24vbp8j0h4"
|
"hash": "0c7j5px26vasr9r9xx4r4s7hkwfc31rcsqivn5cal0zwjyvbdg3z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 3
|
"version": 3
|
||||||
|
|
Loading…
Reference in a new issue