rust pobeda
This commit is contained in:
parent
1bc03bdb14
commit
5cd0ded292
59 changed files with 1185 additions and 1389 deletions
17
hosts/lil-maid/default.nix
Normal file
17
hosts/lil-maid/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ nixpkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hw.nix
|
||||
./dev.nix
|
||||
./sw.nix
|
||||
./fs.nix
|
||||
./niri.nix
|
||||
./home
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"slack"
|
||||
];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
9
hosts/lil-maid/dev.nix
Normal file
9
hosts/lil-maid/dev.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.fira-code
|
||||
nerd-fonts.jetbrains-mono
|
||||
];
|
||||
fonts.fontDir.enable = true;
|
||||
}
|
17
hosts/lil-maid/fs.nix
Normal file
17
hosts/lil-maid/fs.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
fileSystems = {
|
||||
"/" =
|
||||
{ device = "/dev/disk/by-label/nixos";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
"/boot" =
|
||||
{ device = "/dev/disk/by-label/boot";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
};
|
||||
}
|
BIN
hosts/lil-maid/home/cat.jpg
Normal file
BIN
hosts/lil-maid/home/cat.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
14
hosts/lil-maid/home/default.nix
Normal file
14
hosts/lil-maid/home/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ inputs, dotfiles, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nero.nix
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs dotfiles; };
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
}
|
83
hosts/lil-maid/home/nero.nix
Normal file
83
hosts/lil-maid/home/nero.nix
Normal file
|
@ -0,0 +1,83 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
sops.secrets."users/nero/passwordHash" = {
|
||||
neededForUsers = true;
|
||||
sopsFile = ../../../secrets/users.yaml;
|
||||
};
|
||||
|
||||
users.users.nero = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
hashedPasswordFile = config.sops.secrets."users/nero/passwordHash".path;
|
||||
|
||||
extraGroups = [ "networkmanager" "wheel" "adbuser" ];
|
||||
};
|
||||
|
||||
home-manager.users.nero = args@{ config, lib, inputs, pkgs, dotfiles, ... }: {
|
||||
home.stateVersion = "25.11";
|
||||
imports = [
|
||||
inputs.zen-browser.homeModules.beta
|
||||
inputs.niri-flake.homeModules.niri
|
||||
inputs.nix-doom-emacs-unstraightened.homeModule
|
||||
];
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/ayu-mirage.yaml";
|
||||
polarity = "dark";
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
name = "JetBrains Mono";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.mako = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.zen-browser = {
|
||||
enable = true;
|
||||
policies = {
|
||||
DisableAppUpdate = true;
|
||||
DisableTelemetry = true;
|
||||
};
|
||||
};
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
bashrcExtra = ''
|
||||
eval "$(direnv hook bash)"
|
||||
'';
|
||||
};
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
programs.doom-emacs = {
|
||||
enable = true;
|
||||
emacs = pkgs.emacs-pgtk;
|
||||
doomDir = dotfiles + "/doom";
|
||||
};
|
||||
programs.waybar.settings.mainBar.layer = "top";
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
extraConfig = ''
|
||||
return {
|
||||
enable_wayland = true
|
||||
}
|
||||
'';
|
||||
};
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
userName = "Aleksandr";
|
||||
userEmail = "nerodono0@gmail.com";
|
||||
};
|
||||
|
||||
programs.niri.settings = import (dotfiles + "/niri") args;
|
||||
};
|
||||
}
|
30
hosts/lil-maid/hw.nix
Normal file
30
hosts/lil-maid/hw.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, config, lib, modulesPath, ... }:
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
services.blueman.enable = true;
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelModules = [
|
||||
# Without this, bluetooth doesn't work.
|
||||
"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;
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
20
hosts/lil-maid/niri.nix
Normal file
20
hosts/lil-maid/niri.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.stylix.nixosModules.stylix
|
||||
];
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.target = "graphical-session.target";
|
||||
};
|
||||
|
||||
programs.niri.enable = true;
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
enableHidpi = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
fuzzel
|
||||
];
|
||||
}
|
11
hosts/lil-maid/sw.nix
Normal file
11
hosts/lil-maid/sw.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Nuh uh society.
|
||||
ayugram-desktop
|
||||
vesktop
|
||||
slack
|
||||
signal-desktop
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue