Compare commits
3 Commits
bf2392c65b
...
bdd8519557
Author | SHA1 | Date | |
---|---|---|---|
bdd8519557 | |||
6dec59555e | |||
a4e3511154 |
46
flake.nix
46
flake.nix
@ -19,18 +19,21 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nur = {
|
||||
url = github:nix-community/NUR;
|
||||
};
|
||||
|
||||
nethack = {
|
||||
url = git+https://git.psf.lt/xezo360hye/nethack?shallow=1;
|
||||
};
|
||||
nur.url = github:nix-community/NUR;
|
||||
nethack.url = git+https://git.psf.lt/xezo360hye/nethack?shallow=1;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, nixvim, nethack, plasma-manager, nur, ... } @ inputs:
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nixvim,
|
||||
nethack,
|
||||
plasma-manager,
|
||||
nur,
|
||||
...
|
||||
} @ inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
inherit (nixpkgs) lib;
|
||||
|
||||
username = "andrey";
|
||||
@ -55,17 +58,28 @@
|
||||
};
|
||||
};
|
||||
|
||||
extractModule = { homeManagerModules, ... }: homeManagerModules."${lib.head (lib.attrNames homeManagerModules)}";
|
||||
homeManagerModules = map extractModule [ nixvim nethack plasma-manager ];
|
||||
makeHome = hostname: {
|
||||
"${username}@${hostname}" = home-manager.lib.homeManagerConfiguration {
|
||||
|
||||
makeHome = hostname:
|
||||
let
|
||||
extractModules = map
|
||||
(module:
|
||||
let hm = module.homeManagerModules;
|
||||
in hm.${lib.head (lib.attrNames hm)});
|
||||
in
|
||||
{
|
||||
"${username}@${hostname}" = home-manager.lib.homeManagerConfiguration
|
||||
{
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
config.allowUnfree = true;
|
||||
overlays = [ nur.overlay ];
|
||||
};
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = homeManagerModules ++ [
|
||||
|
||||
modules = (extractModules [
|
||||
nixvim
|
||||
nethack
|
||||
plasma-manager
|
||||
]) ++ [
|
||||
nur.hmModules.nur
|
||||
|
||||
./home/${hostname}.nix
|
||||
|
@ -1,7 +1,5 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
colorschemes.nightfox = {
|
||||
enable = true;
|
||||
flavor = "nordfox";
|
||||
|
@ -60,12 +60,18 @@ in
|
||||
users.users.andrey = {
|
||||
isNormalUser = true;
|
||||
initialHashedPassword = "$y$j9T$mGZT4otEkrc94e.Ile.P20$BoxfgxCiacs.tYoEp7S5AjcP.aMUBrsaCJYJkBot635";
|
||||
extraGroups = [ "wheel" "cdrom" "networkmanager" "audio" "dialout" ];
|
||||
extraGroups = [ "wheel" "cdrom" "networkmanager" "audio" "dialout" "scanner" "lp" ];
|
||||
};
|
||||
|
||||
security.sudo.execWheelOnly = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
|
||||
# Printers and scanners
|
||||
hardware.sane.enable = true;
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = [ pkgs.cnijfilter2 ];
|
||||
programs.system-config-printer.enable = true;
|
||||
|
||||
# Programs
|
||||
programs = {
|
||||
|
Loading…
Reference in New Issue
Block a user