Initial commit

This commit is contained in:
Aleksandr 2024-09-22 11:34:06 +03:00
commit ab22fcb51f
35 changed files with 1192 additions and 0 deletions

38
lil-maid/default.nix Normal file
View 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
View 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
View 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;
}

View file

@ -0,0 +1,4 @@
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View file

@ -0,0 +1,9 @@
{
imports = [
./net.nix
./boot.nix
./social.nix
./stash.nix
./net.nix
];
}

3
lil-maid/modules/net.nix Normal file
View file

@ -0,0 +1,3 @@
{
networking.networkmanager.enable = true;
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.desktopManager.plasma6.enable = true;
environment.plasma6.excludePackages = with pkgs.kdePackages; [
plasma-browser-integration
konsole
oxygen
];
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# Slack
slack
# Telegram
telegram-desktop
# Discord
(discord.override {
withOpenASAR = true;
withVencord = true;
})
];
}

View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
obsidian
kitty
git
ripgrep
];
fonts.packages = with pkgs; [
fira-code
fira-code-symbols
];
}