Initial commit
This commit is contained in:
commit
ab22fcb51f
35 changed files with 1192 additions and 0 deletions
38
lil-maid/default.nix
Normal file
38
lil-maid/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
maid = {
|
||||
sys = {
|
||||
enable = true;
|
||||
hostname = "lil-maid";
|
||||
};
|
||||
masters.nero.enable = true;
|
||||
|
||||
sops = {
|
||||
enable = true;
|
||||
|
||||
viendesu.enable = true;
|
||||
work.enable = true;
|
||||
};
|
||||
|
||||
sddm.enable = true;
|
||||
hm.enable = true;
|
||||
hypr.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;
|
||||
}
|
9
lil-maid/modules/default.nix
Normal file
9
lil-maid/modules/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [
|
||||
./net.nix
|
||||
./boot.nix
|
||||
./social.nix
|
||||
./stash.nix
|
||||
./net.nix
|
||||
];
|
||||
}
|
3
lil-maid/modules/net.nix
Normal file
3
lil-maid/modules/net.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
9
lil-maid/modules/plasma.nix
Normal file
9
lil-maid/modules/plasma.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
plasma-browser-integration
|
||||
konsole
|
||||
oxygen
|
||||
];
|
||||
}
|
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;
|
||||
})
|
||||
];
|
||||
}
|
14
lil-maid/modules/stash.nix
Normal file
14
lil-maid/modules/stash.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
obsidian
|
||||
kitty
|
||||
git
|
||||
ripgrep
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue