Merge branch 'main' of ssh://git.duckland.org:2202/don/NixOS-Configs
This commit is contained in:
commit
01d2245f5b
40 changed files with 156 additions and 228 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
|
@ -1,3 +1,2 @@
|
||||||
hosts/*/*key filter=git-crypt diff=git-crypt
|
hosts/*/*key filter=git-crypt diff=git-crypt
|
||||||
workstation/tailscale.nix filter=git-crypt diff=git-crypt
|
hosts/*/tailscale.nix filter=git-crypt diff=git-crypt
|
||||||
server/tailscale.nix filter=git-crypt diff=git-crypt
|
|
||||||
|
|
|
||||||
58
TODO.md
58
TODO.md
|
|
@ -1,58 +0,0 @@
|
||||||
# TODO
|
|
||||||
|
|
||||||
## Machine types
|
|
||||||
- [ ] add HP 810RG1 profile
|
|
||||||
- [ ] add ssd to all
|
|
||||||
- [x] fix eve????
|
|
||||||
|
|
||||||
## Home-manager
|
|
||||||
|
|
||||||
### To Import
|
|
||||||
- [ ] aspell.en.prepl
|
|
||||||
- [ ] aspell.en.pws
|
|
||||||
- [ ] mbsyncrc
|
|
||||||
- [ ] neomutt
|
|
||||||
- [ ] vdirsyncer
|
|
||||||
|
|
||||||
### Port/import
|
|
||||||
- [x] All_Regions
|
|
||||||
- [x] TrusteRegion
|
|
||||||
- [x] Unknown_Region
|
|
||||||
- [x] UntrusteRegion
|
|
||||||
- [x] appsrv
|
|
||||||
- [x] authy
|
|
||||||
- [x] bash_aliases
|
|
||||||
- [x] bash_functions
|
|
||||||
- [x] bash_hosts
|
|
||||||
- [x] bash_logout
|
|
||||||
- [x] bash_motd
|
|
||||||
- [x] bash_motownscript
|
|
||||||
- [x] bash_profile
|
|
||||||
- [x] bash_ssh
|
|
||||||
- [x] bashrc
|
|
||||||
- [x] config-waybar
|
|
||||||
- [x] gitconfig
|
|
||||||
- [x] gnupg
|
|
||||||
- [x] inputrc
|
|
||||||
- [x] listadmin.ini
|
|
||||||
- [x] local
|
|
||||||
- [x] myapps
|
|
||||||
- [x] notmuch
|
|
||||||
- [x] qutebrowser
|
|
||||||
- [x] signature
|
|
||||||
- [x] sway
|
|
||||||
- [x] swaylock
|
|
||||||
- [x] task
|
|
||||||
- [x] tigrc
|
|
||||||
- [x] tmux-cssh
|
|
||||||
- [x] tmux.conf
|
|
||||||
- [x] tmuxinator
|
|
||||||
- [x] urlview
|
|
||||||
- [x] vit
|
|
||||||
- [x] wfclient
|
|
||||||
|
|
||||||
### Drop
|
|
||||||
- muttprintrc
|
|
||||||
- pw.gpg
|
|
||||||
- slack
|
|
||||||
- token
|
|
||||||
81
flake.lock
generated
81
flake.lock
generated
|
|
@ -5,11 +5,11 @@
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710379155,
|
"lastModified": 1711934712,
|
||||||
"narHash": "sha256-zdHEsOOnfBTO1ymL6gd9etR+iNS6HowbJM4Llqxy+Uc=",
|
"narHash": "sha256-sBDe+QmX/QohlnKeSEzrftcXyZL5FY09OMjZ59Rpyy4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "cc69c2340b59e290982ec7e6238471d470c839d0",
|
"rev": "611c9ea53250f7bb22286b3d26872280a0e608f9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -59,11 +59,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710349883,
|
"lastModified": 1711915616,
|
||||||
"narHash": "sha256-bjbdS2mC76xNJwt1d/uZa+JdHR8CCyYbF4Ey/NgOJus=",
|
"narHash": "sha256-co6LoFA+j6BZEeJNSR8nZ4oOort5qYPskjrDHBaJgmo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "2f0db7d418e781354d8a3c50e611e3b1cd413087",
|
"rev": "820be197ccf3adaad9a8856ef255c13b6cc561a6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -73,27 +73,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager-2311": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs-2311"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1706981411,
|
|
||||||
"narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "652fda4ca6dafeb090943422c34ae9145787af37",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"ref": "release-23.11",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libgit2": {
|
"libgit2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -118,11 +97,11 @@
|
||||||
"nixpkgs-regression": "nixpkgs-regression"
|
"nixpkgs-regression": "nixpkgs-regression"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710366336,
|
"lastModified": 1711812209,
|
||||||
"narHash": "sha256-eJeZ3vMbuC351B6CH4mqcpuZJ9RgtdRcxvhd7X2++Nk=",
|
"narHash": "sha256-3uijtGKH6tvQtXIhWzGojSVnoYvc0daAGA4LD0lV+Pc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "c152c2767a262b772c912287e1c2d85173b4781c",
|
"rev": "9b88e5284608116b7db0dbd3d5dd7a33b90d52d7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -132,11 +111,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710123225,
|
"lastModified": 1711352745,
|
||||||
"narHash": "sha256-j3oWlxRZxB7cFsgEntpH3rosjFHRkAo/dhX9H3OfxtY=",
|
"narHash": "sha256-luvqik+i3HTvCbXQZgB6uggvEcxI9uae0nmrgtXJ17U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "ad2fd7b978d5e462048729a6c635c45d3d33c9ba",
|
"rev": "9a763a7acc4cfbb8603bb0231fec3eda864f81c0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -148,11 +127,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710346304,
|
"lastModified": 1711715736,
|
||||||
"narHash": "sha256-vwoyBoCovK7+vdbCYqL9MssoFQjaXtZN8sElcjUdbx8=",
|
"narHash": "sha256-9slQ609YqT9bT/MNX9+5k5jltL9zgpn36DpFB7TkttM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a0906f14161a5c5792e9883117b9471f5bf6df72",
|
"rev": "807c549feabce7eddbf259dbdcec9e0600a0660d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -162,22 +141,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-2311": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1701282334,
|
|
||||||
"narHash": "sha256-MxCVrXY6v4QmfTwIysjjaX0XUhqBbxTWWB4HXtDYsdk=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "057f9aecfb71c4437d2b27d3323df7f93c010b7e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "23.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
|
|
@ -230,11 +193,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710272261,
|
"lastModified": 1711703276,
|
||||||
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
|
"narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
|
"rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -264,11 +227,9 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"home-manager-2311": "home-manager-2311",
|
|
||||||
"nix": "nix",
|
"nix": "nix",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixpkgs-2311": "nixpkgs-2311",
|
|
||||||
"wayland-pipewire-idle-inhibit": "wayland-pipewire-idle-inhibit"
|
"wayland-pipewire-idle-inhibit": "wayland-pipewire-idle-inhibit"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -299,11 +260,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707783103,
|
"lastModified": 1711769260,
|
||||||
"narHash": "sha256-VOP1VOeXOyjn+AJfSHzVNT0l+rgm63ev9p4uTfMfYY0=",
|
"narHash": "sha256-2akYbnQnJ0wb51S3bwrm3/EiZydxbwkfuSfsiTvtNz8=",
|
||||||
"owner": "rafaelrc7",
|
"owner": "rafaelrc7",
|
||||||
"repo": "wayland-pipewire-idle-inhibit",
|
"repo": "wayland-pipewire-idle-inhibit",
|
||||||
"rev": "328da9a7ec30648666434e05cdea614c54f71b46",
|
"rev": "b962b793c436e688d7a71ef58273c0224c50bdfe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
129
flake.nix
129
flake.nix
|
|
@ -3,11 +3,6 @@
|
||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-2311.url = "github:nixos/nixpkgs/23.11";
|
|
||||||
home-manager-2311 = {
|
|
||||||
url = "github:nix-community/home-manager/release-23.11";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-2311";
|
|
||||||
};
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/master";
|
url = "github:nix-community/home-manager/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -21,7 +16,6 @@
|
||||||
outputs = inputs@{
|
outputs = inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixpkgs-2311,
|
|
||||||
nix,
|
nix,
|
||||||
disko,
|
disko,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
|
|
@ -30,55 +24,96 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inputs = { inherit disko home-manager nixpkgs nixos-hardware wayland-pipewire-idle-inhibit; };
|
inherit (self) outputs;
|
||||||
|
lib = nixpkgs.lib // home-manager.lib;
|
||||||
genPkgs = system: import nixpkgs { inherit system; config.allowUnfree = true; };
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
|
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
|
||||||
# creates a nixos system config
|
pkgsFor = lib.genAttrs systems (system: import nixpkgs {
|
||||||
nixosSystem = system: hostname: username:
|
|
||||||
let
|
|
||||||
pkgs = genPkgs system;
|
|
||||||
in
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
config.allowUnfree = true;
|
||||||
inherit pkgs;
|
});
|
||||||
# lets us use these things in modules
|
in
|
||||||
customArgs = { inherit system hostname username pkgs; };
|
{
|
||||||
};
|
inherit lib;
|
||||||
modules = [
|
nixosModules = import ./modules/nixos;
|
||||||
#disko.nixosModules.disko
|
homeManagerModules = import ./modules/home-manager;
|
||||||
./hosts/${hostname}
|
templates = import ./templates;
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
networking.hostName = hostname;
|
overlays = import ./overlays { inherit inputs outputs; };
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
# packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
||||||
#home-manager.users.${username} = { imports = [ ./home/${username}.nix ]; };
|
# devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
|
||||||
}
|
# formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
||||||
];
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# clients
|
# clients
|
||||||
ace = nixosSystem "x86_64-linux" "ace" "don";
|
ace = lib.nixosSystem {
|
||||||
dragon = nixosSystem "x86_64-linux" "dragon" "don";
|
modules = [ ./hosts/ace ];
|
||||||
eve = nixosSystem "x86_64-linux" "eve" "don";
|
specialArgs = { inherit inputs outputs; };
|
||||||
loki = nixosSystem "x86_64-linux" "loki" "don";
|
};
|
||||||
pocket2 = nixosSystem "x86_64-linux" "pocket2" "don";
|
dragon = lib.nixosSystem {
|
||||||
smaug = nixosSystem "x86_64-linux" "smaug" "don";
|
modules = [ ./hosts/dragon ];
|
||||||
#t2 = nixosSystem "x86_64-linux" "t2" "don";
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
eve = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/eve ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
loki = lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
nixos-hardware.nixosModules.dell-xps-13-9310
|
||||||
|
./hosts/loki
|
||||||
|
];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
pocket2 = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/pocket2 ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
smaug = lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
nixos-hardware.nixosModules.lenovo-thinkpad-x260
|
||||||
|
./hosts/smaug
|
||||||
|
];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
# t2 = lib.nixosSystem {
|
||||||
|
# modules = [ ./hosts/t2 ];
|
||||||
|
# specialArgs = { inherit inputs outputs; };
|
||||||
|
# };
|
||||||
|
|
||||||
# servers
|
# servers
|
||||||
display = nixosSystem "x86_64-linux" "display" "don";
|
display = lib.nixosSystem {
|
||||||
harper2 = nixosSystem "x86_64-linux" "harper2" "don";
|
modules = [ ./hosts/display ];
|
||||||
harper = nixosSystem "x86_64-linux" "harper" "don";
|
specialArgs = { inherit inputs outputs; };
|
||||||
nuwww = nixosSystem "x86_64-linux" "nuwww" "don";
|
};
|
||||||
pihole = nixosSystem "x86_64-linux" "pihole" "don";
|
harper2 = lib.nixosSystem {
|
||||||
www2 = nixosSystem "x86_64-linux" "www2" "don";
|
modules = [ ./hosts/harper2 ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
harper = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/harper ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
nuwww = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/nuwww ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
pihole = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/pihole ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
www2 = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/www2 ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
|
|
||||||
# test system
|
# test system
|
||||||
# use this for a blank ISO + disko to work
|
# use this for a blank ISO + disko to work
|
||||||
nixos = nixosSystem "x86_64-linux" "nixos" "don";
|
nixos = lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/nixos ];
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
programs.lazygit = {
|
||||||
|
settings = {
|
||||||
|
os.editPreset = "lvim";
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
aliases = {
|
aliases = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ taskwarrior tasksh vit timewarrior ];
|
home.packages = with pkgs; [ taskwarrior taskwarrior-tui tasksh vit timewarrior ];
|
||||||
programs.taskwarrior = {
|
programs.taskwarrior = {
|
||||||
enable = true;
|
enable = true;
|
||||||
colorTheme = "dark-green-256";
|
colorTheme = "dark-green-256";
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,6 @@
|
||||||
programs.topgrade = {
|
programs.topgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
linux = {
|
|
||||||
home_manager_arguments = [ "--flake" ];
|
|
||||||
nix_arguments = "--flake";
|
|
||||||
};
|
|
||||||
misc = {
|
misc = {
|
||||||
assume_yes = true;
|
assume_yes = true;
|
||||||
no_retry = true;
|
no_retry = true;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{ ... }:
|
{ inputs, outputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
poweralertd
|
poweralertd
|
||||||
powerline-fonts
|
powerline-fonts
|
||||||
prusa-slicer
|
prusa-slicer
|
||||||
pwvucontrol
|
# pwvucontrol ## TODO FIXME This is currently broken upstream 2024-03-26
|
||||||
qpwgraph
|
qpwgraph
|
||||||
quickemu
|
quickemu
|
||||||
quickgui
|
quickgui
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ ... }:
|
{ inputs, outputs, ... }:
|
||||||
{
|
{
|
||||||
# xdg.configFile."sway/config".source = files/sway/${config.networking.hostName};
|
# xdg.configFile."sway/config".source = files/sway/${inputs.networking.hostName};
|
||||||
xdg.configFile."sway/config".source = files/sway/default;
|
xdg.configFile."sway/config".source = files/sway/default;
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../workstation
|
../workstation
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "ace";
|
networking.hostName = "ace";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@
|
||||||
#inputs.nixos-hardware.nixosModules.common-gpu-intel
|
#inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||||
#inputs.nixos-hardware.nixosModules.common-pc-laptop
|
#inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||||
#inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
#inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
../../workstation
|
../workstation
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "dragon";
|
networking.hostName = "dragon";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../workstation
|
../workstation
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "eve";
|
networking.hostName = "eve";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
{ config, pkgs, ... }:
|
{ inputs, outputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../workstation
|
../workstation
|
||||||
|
../workstation/kvm.nix
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "loki";
|
networking.hostName = "loki";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
#inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
#inputs.nixos-hardware.nixosModules.common-gpu-intel
|
inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||||
#inputs.nixos-hardware.nixosModules.common-pc-laptop
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||||
#inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
../../workstation
|
../workstation
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "pocket2";
|
networking.hostName = "pocket2";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,6 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
|
||||||
[ { device = "/dev/disk/by-uuid/13b6e2c4-b8f1-48c9-b992-bf2d172d9a25"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# 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
|
# (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
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../workstation
|
../workstation
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "smaug";
|
networking.hostName = "smaug";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../workstation
|
../workstation
|
||||||
../../home
|
../../home
|
||||||
../../home/gui
|
../../home/gui
|
||||||
../../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "t2";
|
networking.hostName = "t2";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
let
|
let
|
||||||
my-python-packages = python-packages: with python-packages; [
|
my-python-packages = python-packages: with python-packages; [
|
||||||
pip
|
pip
|
||||||
pipx
|
# pipx
|
||||||
python-dateutil
|
python-dateutil
|
||||||
setuptools
|
setuptools
|
||||||
requests
|
requests
|
||||||
|
|
@ -185,6 +185,12 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
memoryPercent = 25;
|
||||||
|
memoryMax = 2147483648;
|
||||||
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
|
||||||
5
hosts/workstation/kvm.nix
Normal file
5
hosts/workstation/kvm.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, inputs, ... }:
|
||||||
|
{
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [ gnome.gnome-boxes ];
|
||||||
|
}
|
||||||
15
makefile
15
makefile
|
|
@ -3,18 +3,21 @@ UNAME_S := $(shell uname -s)
|
||||||
UNAME_M := $(shell uname -m)
|
UNAME_M := $(shell uname -m)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
locate home-manager-backup | sort -u | xargs rm -f
|
@locate home-manager-backup | sort -u | xargs rm -f
|
||||||
|
doas nixos-rebuild build --flake .#${HOSTNAME}
|
||||||
|
|
||||||
|
switch:
|
||||||
doas nixos-rebuild switch --flake .#${HOSTNAME}
|
doas nixos-rebuild switch --flake .#${HOSTNAME}
|
||||||
|
|
||||||
weekly: pull clean update ci all push
|
weekly: pull clean update ci switch push
|
||||||
|
|
||||||
cweekly: clean pull all
|
cweekly: clean pull switch
|
||||||
|
|
||||||
update:
|
update:
|
||||||
nix flake update
|
nix flake update
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
doas nix-collect-garbage
|
doas nix-collect-garbage --quiet --log-format bar --no-build-output --delete-old
|
||||||
doas nix store optimise
|
doas nix store optimise
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
|
@ -24,8 +27,8 @@ push:
|
||||||
pull:
|
pull:
|
||||||
@. ~/.bash_ssh
|
@. ~/.bash_ssh
|
||||||
git pull
|
git pull
|
||||||
doas nix-prefetch-url file://$$PWD/$$(ls -1 pkgs/linuxx64* | tail -n1)
|
doas nix-prefetch-url file://$$PWD/$$(ls -1 src/linuxx64* | tail -n1)
|
||||||
doas nix-prefetch-url file://$$PWD/$$(ls -1 pkgs/linuxarm64* | tail -n1)
|
# doas nix-prefetch-url file://$$PWD/$$(ls -1 src/linuxarm64* | tail -n1)
|
||||||
|
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,3 +0,0 @@
|
||||||
{ allowUnfree = true;
|
|
||||||
permittedInsecurePackages = [ "electron-18.1.0" ];
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
{ config, pkgs, callPackage, ... }:
|
|
||||||
{
|
|
||||||
|
|
||||||
users.users.vicky = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Vicky Harper";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" "scanner" "lp" "video" "mlocate" ];
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
desktopManager = {
|
|
||||||
xterm.enable = false;
|
|
||||||
xfce.enable = true;
|
|
||||||
};
|
|
||||||
displayManager.defaultSession = "xfce";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue