fully refactored stolen config :D
This commit is contained in:
parent
6a59cd0a68
commit
f768ea6596
39 changed files with 1603 additions and 206 deletions
|
@ -1,62 +0,0 @@
|
|||
{ inputs, outputs, profile-config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
#profile-config.overlays
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./packages.nix
|
||||
];
|
||||
|
||||
services.locate = {
|
||||
enable = true;
|
||||
interval = "daily";
|
||||
package = pkgs.plocate;
|
||||
localuser = null;
|
||||
};
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.users = builtins.listToAttrs (builtins.map(
|
||||
u-conf: {
|
||||
inherit inputs;
|
||||
name = u-conf.name;
|
||||
value = import u-conf.config { inherit pkgs inputs outputs; user = u-conf.name; };
|
||||
}
|
||||
)profile-config.user-configs);
|
||||
|
||||
users.users = builtins.listToAttrs (builtins.map(
|
||||
u-conf: {
|
||||
name = u-conf.name;
|
||||
value = {
|
||||
initialPassword = "${u-conf.name}";
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "audio" "video" "input"];
|
||||
};
|
||||
}
|
||||
)profile-config.user-configs);
|
||||
|
||||
time.timeZone = "Europe/Zurich";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
documentation.nixos.enable = false;
|
||||
# Set the keyboard layout to german
|
||||
# Eable CUPS
|
||||
services.printing.enable = true;
|
||||
# Sound settings
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
};
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
};
|
||||
system.stateVersion = "23.11";
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{ inputs, outputs, profile-config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
neovim
|
||||
eza
|
||||
zsh
|
||||
git
|
||||
zip
|
||||
unzip
|
||||
neofetch
|
||||
fastfetch
|
||||
wget
|
||||
zoxide
|
||||
python3
|
||||
gcc
|
||||
htop
|
||||
networkmanager
|
||||
uwufetch
|
||||
];
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{ inputs, ... }:
|
||||
let
|
||||
inherit (inputs) self;
|
||||
inherit (self) lib;
|
||||
in {
|
||||
vali = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit lib inputs self; };
|
||||
};
|
||||
modules = [
|
||||
./vali
|
||||
../modules/vali
|
||||
inputs.home-manager.noxosModules.home-manager
|
||||
inputs.agenix.noxosModules.default
|
||||
];
|
||||
}
|
66
hosts/vali/configuration.nix
Normal file
66
hosts/vali/configuration.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Zurich";
|
||||
security.sudo.package = pkgs.sudo.override { withInsults = true; };
|
||||
security.polkit.enable = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
myOptions = {
|
||||
other = {
|
||||
system = {
|
||||
hostname = "nixos";
|
||||
username = "vali";
|
||||
};
|
||||
home-manager = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
vesktop.enable = true;
|
||||
btop.enable = true;
|
||||
mpv.enable = true;
|
||||
neovim.enable = true;
|
||||
pipewire.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "vali";
|
||||
userEmail = "valentin@kaas.cc";
|
||||
defaultBranch = "master";
|
||||
};
|
||||
starship.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
profiling = false;
|
||||
};
|
||||
i3 = {
|
||||
|
||||
};
|
||||
};
|
||||
themes = {
|
||||
cursor = {
|
||||
enable = true;
|
||||
package = pkgs.bibabta.cursors;
|
||||
name = "Bibata-Modern-Classic";
|
||||
size = "24";
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
package = pkgs.catppuccin-gtk;
|
||||
name = "Catppuccin-Mocha-Standard-Green-Dark";
|
||||
variant = "mocha";
|
||||
accentColour = "green";
|
||||
iconTtheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.catppuccin-papirus-foldersM
|
||||
};
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
package = pkgs.catppuccin-kde;
|
||||
name = "Catppuccin-Mocha-Dark"
|
||||
variant = "mocha";
|
||||
accentColour = "green";
|
||||
};
|
||||
};
|
||||
};
|
||||
system.stateVersion = "23.11";
|
||||
}
|
8
hosts/vali/default.nix
Normal file
8
hosts/vali/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
_: {
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./programs.nix
|
||||
./hardware-configuration.nix
|
||||
./profile.nix
|
||||
]
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
{ inputs, outputs, profile-config, pkgs, ... }:
|
||||
{
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{ inputs, outputs, pks, lib, profile-config, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../../modules/vali/default.nix
|
||||
../../common
|
||||
./hardware-configuration.nix
|
||||
./packages.nix
|
||||
./boot.nix
|
||||
];
|
||||
i3wm.enable = true;
|
||||
security.polkit.enable = true;
|
||||
# Set the keyboard layout to DE
|
||||
services.xserver.xkb.layout = "de";
|
||||
console.keyMap = "de";
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
{ inputs, outputs, pkgs, profile-config, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
jetbrains.idea-community
|
||||
ani-cli
|
||||
okular
|
||||
texliveFull
|
||||
signal-desktop
|
||||
nextcloud-client
|
||||
vlc
|
||||
strawberry
|
||||
telegram-desktop
|
||||
betterbird
|
||||
xclip
|
||||
pavucontrol
|
||||
lazygit
|
||||
vesktop
|
||||
zsh
|
||||
zoxide
|
||||
eza
|
||||
mpv
|
||||
librewolf
|
||||
keepassxc
|
||||
feh
|
||||
libreoffice
|
||||
openjdk
|
||||
];
|
||||
}
|
11
hosts/vali/profile.nix
Normal file
11
hosts/vali/profile.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
_: {
|
||||
imports = [
|
||||
../../options/boot/grub-boot.nix
|
||||
../../options/desktop/fonts.nix
|
||||
../../options/common/networking.nix
|
||||
../../options/common/gpu/nvidia.nix
|
||||
../../options/common/pin-registry.nix
|
||||
../../options/common/preserve-system.nix
|
||||
#../../options/
|
||||
];
|
||||
}
|
57
hosts/vali/programs.nix
Normal file
57
hosts/vali/programs.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
let
|
||||
username = config.myOptions.other.system.usermame;
|
||||
in
|
||||
home-manager.users.${username} = {
|
||||
home.packages = let
|
||||
|
||||
in with pkgs; [
|
||||
git
|
||||
keepassxc
|
||||
eza ripgrep
|
||||
signal-desktop-beta
|
||||
element-desktop
|
||||
steam
|
||||
tor-browser-bundle-bin
|
||||
betterbird
|
||||
telegram-desktop
|
||||
libreoffice-fresh
|
||||
qbittorrent
|
||||
ventoy-full
|
||||
zip
|
||||
unzip
|
||||
gcc
|
||||
trash-cli
|
||||
bibata-cursors
|
||||
networkmanagerapplet
|
||||
xclip
|
||||
pamixer
|
||||
dig
|
||||
pcmanfm
|
||||
ffmpeg_6-full
|
||||
yt-dlp
|
||||
(fenix.complete.withComponents [
|
||||
"cargo"
|
||||
"clippy"
|
||||
"rust-src"
|
||||
"rustc"
|
||||
"rustfmt"
|
||||
])
|
||||
polkit
|
||||
asciinema
|
||||
fastfetch
|
||||
alsa-utils
|
||||
imagemagick
|
||||
pavucontrol
|
||||
gdb
|
||||
tree
|
||||
smartmontools
|
||||
krita
|
||||
python3
|
||||
rustdesk
|
||||
httpie
|
||||
sherlock
|
||||
strawberry
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue