various stuff

This commit is contained in:
Chris Kruining 2025-03-09 23:30:26 +01:00
parent 407160b012
commit 6b44ec946b
15 changed files with 288 additions and 134 deletions

View file

@ -8,7 +8,7 @@ in
{ {
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
inputs.nixvim.nixosModules.nixvim inputs.nvf.nixosModules.default
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
inputs.nix-minecraft.nixosModules.minecraft-servers inputs.nix-minecraft.nixosModules.minecraft-servers
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops

224
flake.lock generated
View file

@ -190,10 +190,7 @@
}, },
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": "nixpkgs-lib_2"
"nixvim",
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1738453229, "lastModified": 1738453229,
@ -446,34 +443,6 @@
"type": "github" "type": "github"
} }
}, },
"ixx": {
"inputs": {
"flake-utils": [
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"nixvim",
"nuschtosSearch",
"nixpkgs"
]
},
"locked": {
"lastModified": 1729958008,
"narHash": "sha256-EiOq8jF4Z/zQe0QYVc3+qSKxRK//CFHMB84aYrYGwEs=",
"owner": "NuschtOS",
"repo": "ixx",
"rev": "9fd01aad037f345350eab2cd45e1946cc66da4eb",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"ref": "v0.0.6",
"repo": "ixx",
"type": "github"
}
},
"lib-aggregate": { "lib-aggregate": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
@ -493,6 +462,21 @@
"type": "github" "type": "github"
} }
}, },
"mnw": {
"locked": {
"lastModified": 1738852285,
"narHash": "sha256-8Y1uyE6gGHxdU0Vcx2CMg/dAmDSxJw19aAl3TKbbo54=",
"owner": "Gerg-L",
"repo": "mnw",
"rev": "6ae73dc9cb72cea17bcc2e3d4670825f483e80e8",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"repo": "mnw",
"type": "github"
}
},
"mozilla": { "mozilla": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -509,6 +493,32 @@
"type": "github" "type": "github"
} }
}, },
"nil": {
"inputs": {
"flake-utils": [
"nvf",
"flake-utils"
],
"nixpkgs": [
"nvf",
"nixpkgs"
],
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1732053863,
"narHash": "sha256-DCIVdlb81Fct2uwzbtnawLBC/U03U2hqx8trqTJB7WA=",
"owner": "oxalica",
"repo": "nil",
"rev": "2e24c9834e3bb5aa2a3701d3713b43a6fb106362",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "nil",
"type": "github"
}
},
"nix-minecraft": { "nix-minecraft": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@ -529,6 +539,21 @@
"type": "github" "type": "github"
} }
}, },
"nixos-boot": {
"locked": {
"lastModified": 1722927293,
"narHash": "sha256-8oCsiFyAuidAdhSz60Lu8+TwCPHxaeWixyv0xT0mLt4=",
"owner": "Melkor333",
"repo": "nixos-boot",
"rev": "afaed735149d0a06f234e54dd2d9db2e18dc64ae",
"type": "github"
},
"original": {
"owner": "Melkor333",
"repo": "nixos-boot",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1740695751, "lastModified": 1740695751,
@ -560,6 +585,18 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1738452942,
"narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
}
},
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1740828860, "lastModified": 1740828860,
@ -625,6 +662,22 @@
} }
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": {
"lastModified": 1740303746,
"narHash": "sha256-XcdiWLEhjJkMxDLKQJ0CCivmYYCvA5MDxu9pMybM5kM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2d068ae5c6516b2d04562de50a58c682540de9bf",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1731763621, "lastModified": 1731763621,
"narHash": "sha256-ddcX4lQL0X05AYkrkV2LMFgGdRvgap7Ho8kgon3iWZk=", "narHash": "sha256-ddcX4lQL0X05AYkrkV2LMFgGdRvgap7Ho8kgon3iWZk=",
@ -640,7 +693,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1740367490, "lastModified": 1740367490,
"narHash": "sha256-WGaHVAjcrv+Cun7zPlI41SerRtfknGQap281+AakSAw=", "narHash": "sha256-WGaHVAjcrv+Cun7zPlI41SerRtfknGQap281+AakSAw=",
@ -656,7 +709,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_7": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1727348695, "lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=", "narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
@ -672,26 +725,20 @@
"type": "github" "type": "github"
} }
}, },
"nixvim": { "nmd": {
"inputs": { "flake": false,
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
],
"nuschtosSearch": "nuschtosSearch"
},
"locked": { "locked": {
"lastModified": 1740520037, "lastModified": 1705050560,
"narHash": "sha256-TpZMYjOre+6GhKDVHFwoW2iBWqpNQppQTuqIAo+OBV8=", "narHash": "sha256-x3zzcdvhJpodsmdjqB4t5mkVW22V3wqHLOun0KRBzUI=",
"owner": "nix-community", "owner": "~rycee",
"repo": "nixvim", "repo": "nmd",
"rev": "6f8d8f7aee84f377f52c8bb58385015f9168a666", "rev": "66d9334933119c36f91a78d565c152a4fdc8d3d3",
"type": "github" "type": "sourcehut"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "~rycee",
"repo": "nixvim", "repo": "nmd",
"type": "github" "type": "sourcehut"
} }
}, },
"nur": { "nur": {
@ -717,26 +764,27 @@
"type": "github" "type": "github"
} }
}, },
"nuschtosSearch": { "nvf": {
"inputs": { "inputs": {
"flake-parts": "flake-parts",
"flake-utils": "flake-utils_3", "flake-utils": "flake-utils_3",
"ixx": "ixx", "mnw": "mnw",
"nixpkgs": [ "nil": "nil",
"nixvim", "nixpkgs": "nixpkgs_5",
"nixpkgs" "nmd": "nmd",
] "systems": "systems_4"
}, },
"locked": { "locked": {
"lastModified": 1738508923, "lastModified": 1741546504,
"narHash": "sha256-4DaDrQDAIxlWhTjH6h/+xfG05jt3qDZrZE/7zDLQaS4=", "narHash": "sha256-dtdj9RWtsIiSa0H6XDY3c9gXKMN22RxgIvQtMHArd3w=",
"owner": "NuschtOS", "owner": "notashelf",
"repo": "search", "repo": "nvf",
"rev": "86e2038290859006e05ca7201425ea5b5de4aecb", "rev": "c8fd6204d02596462e354cf35b029cd6a86ce24b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NuschtOS", "owner": "notashelf",
"repo": "search", "repo": "nvf",
"type": "github" "type": "github"
} }
}, },
@ -770,9 +818,10 @@
"flux": "flux", "flux": "flux",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-minecraft": "nix-minecraft", "nix-minecraft": "nix-minecraft",
"nixos-boot": "nixos-boot",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nvf": "nvf",
"plasma-manager": "plasma-manager", "plasma-manager": "plasma-manager",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"stylix": "stylix", "stylix": "stylix",
@ -796,9 +845,31 @@
"type": "github" "type": "github"
} }
}, },
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nvf",
"nil",
"nixpkgs"
]
},
"locked": {
"lastModified": 1731983527,
"narHash": "sha256-JECaBgC0pQ91Hq3W4unH6K9to8s2Zl2sPNu7bLOv4ek=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "71287228d96e9568e1e70c6bbfa3f992d145947b",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1741043164, "lastModified": 1741043164,
@ -826,9 +897,9 @@
"git-hooks": "git-hooks", "git-hooks": "git-hooks",
"gnome-shell": "gnome-shell", "gnome-shell": "gnome-shell",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_7",
"nur": "nur", "nur": "nur",
"systems": "systems_4", "systems": "systems_5",
"tinted-foot": "tinted-foot", "tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty", "tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes", "tinted-schemes": "tinted-schemes",
@ -909,6 +980,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_5": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": { "tinted-foot": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1015,7 +1101,7 @@
}, },
"zen-browser": { "zen-browser": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_7" "nixpkgs": "nixpkgs_8"
}, },
"locked": { "locked": {
"lastModified": 1727721329, "lastModified": 1727721329,

View file

@ -16,10 +16,9 @@
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
nixvim = { nvf.url = "github:notashelf/nvf";
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs"; nixos-boot.url = "github:Melkor333/nixos-boot";
};
firefox.url = "github:nix-community/flake-firefox-nightly"; firefox.url = "github:nix-community/flake-firefox-nightly";

View file

@ -9,7 +9,7 @@
polarity = "dark"; polarity = "dark";
}; };
system.audio = true; system.audio.enable = true;
networking.enable = true; networking.enable = true;
desktop = { desktop = {

View file

@ -2,6 +2,8 @@
{ {
imports = [ ./hardware.nix ]; imports = [ ./hardware.nix ];
user.name = "chris";
fileSystems."/home/chris/games" = { fileSystems."/home/chris/games" = {
device = "/dev/disk/by-label/games"; device = "/dev/disk/by-label/games";
fsType = "ext4"; fsType = "ext4";
@ -52,7 +54,7 @@
}; };
editors = { editors = {
default = "nano"; default = "zed";
vscodium.enable = true; vscodium.enable = true;
zed.enable = true; zed.enable = true;
nvim.enable = true; nvim.enable = true;

View file

@ -0,0 +1,65 @@
// { config, lib, pkgs, ... }:
// {
// full_name = "WOOT";
// modules = {
// themes = {
// enable = true;
// theme = "everforest";
// polarity = "dark";
// };
// develop = {
// rust.enable = true;
// js.enable = true;
// dotnet.enable = true;
// };
// # EXPERIMENTS
// # services.games.minecraft.enable = true;
// services.auth.enable = true;
// desktop = {
// plasma.enable = true;
// type = "wayland";
// applications = {
// communication.enable = true;
// email.enable = true;
// office.enable = true;
// steam.enable = true;
// recording.enable = true;
// };
// terminal = {
// default = "ghostty";
// alacritty.enable = true;
// ghostty.enable = true;
// };
// editors = {
// default = "zed";
// vscodium.enable = true;
// zed.enable = true;
// nvim.enable = true;
// nano.enable = true;
// kate.enable = true;
// };
// browsers = {
// default = "chromium";
// firefox.enable = true;
// chrome.enable = true;
// };
// games = {
// minecraft.enable = true;
// };
// };
// shell = {
// default = "zsh";
// corePkgs.enable = true;
// };
// };
// }

View file

@ -1,15 +1,21 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./hardware.nix ]; # imports = [ ./hardware.nix ];
user_name = "moeke";
# user = {
# name = "moeke";
# display_name = "Ons mam";
# };
modules = { modules = {
themes = { themes = {
enable = true; enable = true;
theme = "everforest"; theme = "everforest";
polarity = "dark"; polarity = "light";
}; };
system.audio = true; system.audio.enable = true;
networking.enable = true; networking.enable = true;
desktop = { desktop = {
@ -26,9 +32,8 @@
}; };
browsers = { browsers = {
default = "firefox"; default = "chrome";
firefox.enable = true; chrome.enable=true;
firefox.privacy.enable = true;
}; };
}; };

View file

@ -15,6 +15,7 @@ in rec
specialArgs = { inherit lib inputs system; }; specialArgs = { inherit lib inputs system; };
modules = [ modules = [
inputs.nixos-boot.nixosModules.default
{ {
nixpkgs.pkgs = pkgs; nixpkgs.pkgs = pkgs;
networking.hostName = mkDefault (removeSuffix ".nix" (baseNameOf path)); networking.hostName = mkDefault (removeSuffix ".nix" (baseNameOf path));

View file

@ -15,7 +15,7 @@ in
config = mkIf cfg.enable config = mkIf cfg.enable
{ {
user.packages = attrValues { user.packages = attrValues {
inherit (pkgs) vesktop teamspeak_client whatsapp-for-linux; inherit (pkgs) vesktop teamspeak_client;
}; };
}; };
} }

View file

@ -9,39 +9,23 @@ in
in { enable = mkEnableOption "neo-vim (nixvim)"; }; in { enable = mkEnableOption "neo-vim (nixvim)"; };
config = mkIf config.modules.desktop.editors.nvim.enable { config = mkIf config.modules.desktop.editors.nvim.enable {
programs.nixvim = { programs.nvf = {
enable = true; enable = true;
settings = {
vim = {
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
opts = { languages = {
number = true; enableLSP = true;
enableTreesitter = true;
shiftwidth = 2; nix.enable = true;
}; ts.enable = true;
rust.enable = true;
# colorschemes.base16 = "${pkgs.base16-schemes}/share/themes/everforest.yaml";
# colorschemes.everforest.enable = true;
plugins = {
lualine.enable = true;
lightline.enable = true;
lsp = {
enable = true;
servers = {
ts_ls.enable = true;
lua_ls.enable = true;
rust_analyzer = {
enable = true;
installRustc = true;
installCargo = true;
};
}; };
}; };
cmp = {
enable = true;
autoEnableSources = true;
};
}; };
}; };
}; };

View file

@ -19,7 +19,7 @@ in
}; };
autoLogin = { autoLogin = {
enable = true; enable = true;
user = "chris"; user = config.user.name;
}; };
}; };

View file

@ -1,16 +1,13 @@
{ inputs, config, options, lib, pkgs, ... }: { inputs, config, options, lib, pkgs, ... }:
let let
inherit (builtins) elem isList pathExists toString; inherit (builtins) pathExists toString;
inherit (lib.attrsets) mapAttrs mapAttrsToList;
inherit (lib.lists) findFirst; inherit (lib.lists) findFirst;
inherit (lib.modules) mkAliasDefinitions; inherit (lib.modules) mkAliasDefinitions;
inherit (lib.strings) concatMapStringsSep concatStringsSep;
inherit (lib.my) mkOpt mkOpt';
in in
{ {
options = let options = let
inherit (lib.options) mkOption; inherit (lib.types) attrs path str;
inherit (lib.types) attrs attrsOf either listOf oneOf path str; inherit (lib.my) mkOpt;
in in
{ {
user = mkOpt attrs {}; user = mkOpt attrs {};
@ -31,19 +28,18 @@ in
pkgs.sops pkgs.sops
]; ];
user = let nixos-boot = {
user = builtins.getEnv "USER"; enable = true;
name =
if builtins.elem user [ "" "root" ] then "chris" bgColor = { red = 30; green = 30; blue = 30; };
else user; };
in
{ user = {
inherit name; name = "chris";
# description = "Primary user account";
description = "Chris Kruining"; description = "Chris Kruining";
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
isNormalUser = true; isNormalUser = true;
home = "/home/${name}"; home = "/home/chris";
group = "users"; group = "users";
uid = 1000; uid = 1000;
}; };
@ -53,7 +49,6 @@ in
useUserPackages = true; useUserPackages = true;
sharedModules = [ sharedModules = [
inputs.plasma-manager.homeManagerModules.plasma-manager inputs.plasma-manager.homeManagerModules.plasma-manager
inputs.nixvim.homeManagerModules.nixvim
]; ];
}; };
@ -62,7 +57,9 @@ in
sessionPath = [ "$SNEEUWVLOK_BIN" "$XDG_BIN_HOME" "$PATH" ]; sessionPath = [ "$SNEEUWVLOK_BIN" "$XDG_BIN_HOME" "$PATH" ];
}; };
users.users.${config.user.name} = mkAliasDefinitions options.user; users.users = {
${config.user.name} = mkAliasDefinitions options.user;
};
nix.settings = let users = [ "root" config.user.name ]; in nix.settings = let users = [ "root" config.user.name ]; in
{ {

View file

@ -48,7 +48,7 @@ in
bypassesPlayerLimit = false; bypassesPlayerLimit = false;
} }
]; ];
jvmOpts = "-Xms4092M -Xmx4092M -XX:+UseG1GC -Djava.net.preferIPv4Stack=true"; jvmOpts = "-Xms2048M -Xmx2048M -XX:+UseG1GC";
in { in {
vanilla = { vanilla = {
enable = true; enable = true;

View file

@ -9,9 +9,16 @@
sudo.execWheelOnly = true; sudo.execWheelOnly = true;
acme.acceptTerms = true; acme.acceptTerms = true;
polkit.enable = true; polkit.enable = true;
pam.services.kwallet = { pam = {
name = "kwallet"; u2f = {
enableKwallet = true; enable = true;
settings.cue = true;
};
services.kwallet = {
name = "kwallet";
enableKwallet = true;
};
}; };
}; };

View file

@ -37,6 +37,14 @@ in {
image = ./${cfg.theme}.jpg; image = ./${cfg.theme}.jpg;
polarity = cfg.polarity; polarity = cfg.polarity;
targets = {
grub.enable = true;
plymouth.enable = true;
console.enable = true;
nixos-icons.enable = true;
qt.enable = true;
};
fonts = { fonts = {
serif = { serif = {
package = pkgs.dejavu_fonts; package = pkgs.dejavu_fonts;