Compare commits

..

No commits in common. "752fce2538a1f82abe977e29354612dc0ca59341" and "9fa74d52c129d7cf0a75084f438198ec3d73d865" have entirely different histories.

6 changed files with 25 additions and 43 deletions

View file

@ -12,6 +12,11 @@
lsof lsof
tcpdump tcpdump
netcat # <3 netcat # <3
# used for nix config
colmena
agenix
rc2nix
]; ];
environment.wordlist.enable = true; environment.wordlist.enable = true;

View file

@ -1,9 +1,13 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
home-manager = { home-manager.users = {
useUserPackages = true; qenya = { config, lib, pkgs, osConfig, ... }: {
useGlobalPkgs = true; home.homeDirectory = osConfig.users.users.qenya.home;
backupFileExtension = "backup";
imports = [
../home/qenya
];
};
}; };
} }

View file

@ -11,9 +11,4 @@ in {
}; };
programs.zsh.enable = true; programs.zsh.enable = true;
home-manager.users.qenya = { config, lib, pkgs, osConfig, ... }: {
home.homeDirectory = osConfig.users.users.qenya.home;
imports = [ ../../home/qenya ];
};
} }

View file

@ -42,8 +42,18 @@
nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; nix.nixPath = [ "nixpkgs=flake:nixpkgs" ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ nur.overlay ]; nixpkgs.config.packageOverrides = pkgs: {
home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ]; agenix = inputs.agenix.packages.${config.nixpkgs.hostPlatform.system}.default;
rc2nix = inputs.plasma-manager.packages.${config.nixpkgs.hostPlatform.system}.rc2nix;
};
nixpkgs.overlays = [ inputs.nur.overlay ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ];
};
imports = [ imports = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
@ -88,19 +98,5 @@
]; ];
}; };
}; };
# TODO: have this work on other systems too
devShells."x86_64-linux".default =
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
pkgs.mkShell {
packages = [
pkgs.colmena
agenix.packages.${system}.default
plasma-manager.packages.${system}.rc2nix
];
};
}; };
} }

View file

@ -25,15 +25,6 @@
theme = "agnoster"; theme = "agnoster";
}; };
initExtra = ''
# If a shell is started in a directory with a shell.nix, automatically run nix-shell
if [ -f ./shell.nix ]; then
if [ -z "$IN_NIX_SHELL" ]; then
nix-shell --command "zsh"
fi
fi
'';
envExtra = '' envExtra = ''
DEFAULT_USER=qenya DEFAULT_USER=qenya
''; '';

View file

@ -1,9 +0,0 @@
let
shell = (import
(fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/refs/tags/v1.0.1.tar.gz";
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5";
})
{ src = ./.; }).shellNix;
in
shell.devShells.${builtins.currentSystem}