mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
feat(systems/chen): initialise
This commit is contained in:
parent
ccf6a6f704
commit
ee228abd84
5 changed files with 116 additions and 18 deletions
59
flake.lock
generated
59
flake.lock
generated
|
|
@ -24,11 +24,11 @@
|
|||
"arcexprs": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1675107003,
|
||||
"narHash": "sha256-ao5OLwhC7+T3O2ixRrt76gIg9uZR3c17SJL3Wvx0EpQ=",
|
||||
"lastModified": 1675450557,
|
||||
"narHash": "sha256-0Syp+pnuTCjAM9aJAX3DIt6qbAvp/wNeoaGeBn5zmEM=",
|
||||
"owner": "arcnmx",
|
||||
"repo": "nixexprs",
|
||||
"rev": "5b7d1eb5e578da7ed36b2105f80f82f9ad11244d",
|
||||
"rev": "4d4f3a24770be3e60b69cfc191b67f7a1ecbd6a8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -126,11 +126,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1675181178,
|
||||
"narHash": "sha256-jymSUUjKoArptU7LJ1i4boysXptnpuETiUTenKgs2fM=",
|
||||
"lastModified": 1675462931,
|
||||
"narHash": "sha256-JiOUSERBtA1lN/s9YTKGZoZ3XUicHDwr+C8swaPSh3M=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "69696fe53940562a047bf2ec675cc1dcd1bc09b3",
|
||||
"rev": "e2c1756e3ae001ca8696912016dd31cb1503ccf3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -188,11 +188,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1675115703,
|
||||
"narHash": "sha256-4zetAPSyY0D77x+Ww9QBe8RHn1akvIvHJ/kgg8kGDbk=",
|
||||
"lastModified": 1675454231,
|
||||
"narHash": "sha256-5rgcWq1nFWlbR3NsLqY7i/7358uhkSeMQJ/LEHk3BWA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2caf4ef5005ecc68141ecb4aac271079f7371c44",
|
||||
"rev": "06999209d7a0043d4372e38f57cffae00223d592",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -205,11 +205,11 @@
|
|||
"pypi-deps-db": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1675156620,
|
||||
"narHash": "sha256-lmnsBYJz2Fgm0WFNUgSqskpwa0ffbFOr9YGDZpUXptk=",
|
||||
"lastModified": 1675544670,
|
||||
"narHash": "sha256-CV3qfT4CdMR9CbyPmbJXMHNgLK0p+62nwM2/yF8QHS0=",
|
||||
"owner": "DavHau",
|
||||
"repo": "pypi-deps-db",
|
||||
"rev": "2e236bb32e6e3ef13cd56fc6d9aee8c89059a1ac",
|
||||
"rev": "f822ecb6e8e27ac4e1c34218536658d6be0da51f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -230,11 +230,11 @@
|
|||
"rust-overlay": "rust-overlay"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1673786180,
|
||||
"narHash": "sha256-5tu71eDtQVmVUorho/GKaCzr4cdmNpvG8ZYxMhDCVKY=",
|
||||
"lastModified": 1675293936,
|
||||
"narHash": "sha256-xaObOxlMiZ8noXbXWfoUJrCjVZ8oc9HBblc/MeCq7fc=",
|
||||
"owner": "yaxitech",
|
||||
"repo": "ragenix",
|
||||
"rev": "92248738a21db5687744d9e7796cf2433b96a7a5",
|
||||
"rev": "325733b734aa4cc4d6b19f1169e6672cad4128ca",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -259,7 +259,8 @@
|
|||
"scalpel": "scalpel",
|
||||
"std": "std",
|
||||
"tree": "tree",
|
||||
"utils": "utils"
|
||||
"utils": "utils",
|
||||
"wsl": "wsl"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
|
|
@ -362,6 +363,32 @@
|
|||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"wsl": {
|
||||
"inputs": {
|
||||
"flake-compat": [
|
||||
"flake-compat"
|
||||
],
|
||||
"flake-utils": [
|
||||
"utils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1675351082,
|
||||
"narHash": "sha256-4Oi4k4Qp1vOvKoACHDcz0xiVj7DuMaCL57fP3W77eA0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NixOS-WSL",
|
||||
"rev": "52cadf92e1bfdef235d5cd77b9a4b2ab848baa8a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "NixOS-WSL",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
|||
|
|
@ -36,6 +36,15 @@
|
|||
url = "github:lnl7/nix-darwin/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# WSL host
|
||||
wsl = {
|
||||
url = "github:nix-community/NixOS-WSL";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-utils.follows = "utils";
|
||||
flake-compat.follows = "flake-compat";
|
||||
};
|
||||
};
|
||||
# flake-utils
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
# file structure -> attrset
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: {
|
||||
programs.rbw = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
package = pkgs.rbw-bitw;
|
||||
settings = {
|
||||
inherit (tree.kat.user.data) email;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
inherit (lib.lists) concatLists elem;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
commonUser = {
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = concatLists (mapAttrsToList
|
||||
(_: user:
|
||||
if elem "wheel" user.extraGroups then
|
||||
|
|
|
|||
63
systems/chen.nix
Normal file
63
systems/chen.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
_: let
|
||||
hostConfig = {tree, modulesPath, inputs, pkgs, ...}: {
|
||||
imports = with tree; [
|
||||
inputs.wsl.nixosModules.wsl
|
||||
"${modulesPath}/profiles/minimal.nix"
|
||||
];
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/sdc";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/usr/lib/wsl/drivers" = {
|
||||
device = "drivers";
|
||||
fsType = "9p";
|
||||
};
|
||||
"/usr/lib/wsl/lib" = {
|
||||
device = "none";
|
||||
fsType = "overlay";
|
||||
};
|
||||
"/mnt/wsl" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
};
|
||||
"/mnt/wslg" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
};
|
||||
"/mnt/wslg/doc" = {
|
||||
device = "none";
|
||||
fsType = "overlay";
|
||||
};
|
||||
"/mnt/c" = {
|
||||
device = "drvfs";
|
||||
fsType = "9p";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/sdb"; }
|
||||
];
|
||||
|
||||
wsl = {
|
||||
enable = true;
|
||||
defaultUser = "kat";
|
||||
startMenuLaunchers = true;
|
||||
wslConf.automount.root = "/mnt";
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostId = "dddbb888";
|
||||
useDHCP = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
};
|
||||
in {
|
||||
arch = "x86_64";
|
||||
type = "NixOS";
|
||||
modules = [
|
||||
hostConfig
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue