Initial commit
This commit is contained in:
commit
5648fe3686
31 changed files with 827 additions and 0 deletions
35
lil-maid/default.nix
Normal file
35
lil-maid/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
maid = {
|
||||
sys = {
|
||||
enable = true;
|
||||
hostname = "lil-maid";
|
||||
};
|
||||
masters.nero.enable = true;
|
||||
|
||||
sops = {
|
||||
enable = true;
|
||||
|
||||
viendesu.enable = true;
|
||||
work.enable = true;
|
||||
};
|
||||
|
||||
ly.enable = true;
|
||||
firefox.enable = true;
|
||||
vpn.hft.enable = true;
|
||||
|
||||
unfree = [
|
||||
"obsidian"
|
||||
"slack"
|
||||
"discord"
|
||||
];
|
||||
};
|
||||
|
||||
imports = [
|
||||
./modules
|
||||
|
||||
./hw.nix
|
||||
./fs.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
22
lil-maid/fs.nix
Normal file
22
lil-maid/fs.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
fileSystems = {
|
||||
"/" =
|
||||
{ device = "/dev/disk/by-label/nixos";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
"/boot" =
|
||||
{ device = "/dev/disk/by-label/boot";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
"/secrets" =
|
||||
{ device = "/dev/disk/by-label/secrets";
|
||||
fsType = "btrfs";
|
||||
options = [ "nofail" ];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-label/swap"; }
|
||||
];
|
||||
}
|
27
lil-maid/hw.nix
Normal file
27
lil-maid/hw.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, config, lib, modulesPath, ... }:
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
systemd.tmpfiles.settings = {
|
||||
"10-secrets" = {
|
||||
"/secrets".v = {
|
||||
user = "nero";
|
||||
mode = "0760";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelModules = [ "btusb" "kvm-amd" ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
4
lil-maid/modules/boot.nix
Normal file
4
lil-maid/modules/boot.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
7
lil-maid/modules/default.nix
Normal file
7
lil-maid/modules/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./social.nix
|
||||
./stash.nix
|
||||
];
|
||||
}
|
16
lil-maid/modules/social.nix
Normal file
16
lil-maid/modules/social.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Slack
|
||||
slack
|
||||
|
||||
# Telegram
|
||||
telegram-desktop
|
||||
|
||||
# Discord
|
||||
(discord.override {
|
||||
withOpenASAR = true;
|
||||
withVencord = true;
|
||||
})
|
||||
];
|
||||
}
|
6
lil-maid/modules/stash.nix
Normal file
6
lil-maid/modules/stash.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
obsidian
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue