XDG_CONFIG_HOME/nixpkgs->XDG_CONFIG_HOME/home-manager

This commit is contained in:
chayleaf 2023-04-10 19:15:34 +07:00
parent 15836f06f3
commit e1592b5cff
9 changed files with 21 additions and 14 deletions

View file

@ -1,7 +1,7 @@
# My Nix config # My Nix config
To install, put `system` to `/etc/nixos`, put `home` to To install, put `system` to `/etc/nixos`, put `home` to
`~/.config/nixpkgs`. `~/.config/home-manager` (and `overlays.nix` to `~/.config/nixpkgs`)
The reason they are separate is because I want to be able to iterate The reason they are separate is because I want to be able to iterate
home config quickly, and `nixos-rebuild`'ing the entire sytem for every home config quickly, and `nixos-rebuild`'ing the entire sytem for every

View file

@ -80,7 +80,7 @@ commonConfig = {
inherit modifier; inherit modifier;
startup = [ startup = [
{ command = builtins.toString (with pkgs; writeShellScript "init-wm" '' { command = builtins.toString (with pkgs; writeShellScript "init-wm" ''
${callPackage ../pkgs/home-daemon {}}/bin/dotfiles-home-daemon system76-scheduler& ${home-daemon}/bin/home-daemon system76-scheduler&
${gnome.zenity}/bin/zenity --password | (${keepassxc}/bin/keepassxc --pw-stdin ~/Nextcloud/keepass.kdbx&) ${gnome.zenity}/bin/zenity --password | (${keepassxc}/bin/keepassxc --pw-stdin ~/Nextcloud/keepass.kdbx&)
# nextcloud and nheko need secret service access # nextcloud and nheko need secret service access
${nextcloud-client}/bin/nextcloud --background& ${nextcloud-client}/bin/nextcloud --background&
@ -448,7 +448,7 @@ in
}; };
terminal = config.terminalBin; terminal = config.terminalBin;
extraConfig = { extraConfig = {
modi = [ "steam:${pkgs.callPackage ../pkgs/rofi-steam-game-list {}}/bin/rofi-steam-game-list" "drun" "run" "ssh" ]; modi = [ "steam:${pkgs.rofi-steam-game-list}/bin/rofi-steam-game-list" "drun" "run" "ssh" ];
icon-theme = "hicolor"; icon-theme = "hicolor";
drun-match-fields = [ "name" "generic" "exec" "keywords" ]; drun-match-fields = [ "name" "generic" "exec" "keywords" ];
show-icons = true; show-icons = true;

View file

@ -37,6 +37,12 @@
"https://cache.nixos.org" "https://cache.nixos.org"
# "https://nixpkgs-wayland.cachix.org" # "https://nixpkgs-wayland.cachix.org"
]; ];
overlays = [
(self: super: import ./pkgs {
pkgs = super;
})
nix-gaming.overlays.default
];
}; };
extraSpecialArgs = { extraSpecialArgs = {
# pkgs-wayland = nixpkgs-wayland.packages.${system}; # pkgs-wayland = nixpkgs-wayland.packages.${system};
@ -44,13 +50,6 @@
modules = [ modules = [
notlua.nixosModules.default notlua.nixosModules.default
nur.nixosModules.nur nur.nixosModules.nur
{ nixpkgs.overlays = [
nix-gaming.overlays.default
(self: super: {
clang_latest = super.clang_15;
clang-tools_latest = super.clang-tools_15;
})
]; }
./hosts/nixmsi.nix ./hosts/nixmsi.nix
(getPriv "nixmsi") (getPriv "nixmsi")
]; ];

View file

@ -102,7 +102,7 @@
kdenlive kdenlive
mediainfo mediainfo
glaxnimate glaxnimate
(pkgs.callPackage ../pkgs/lalrpop { }) lalrpop
# waiting until the PR gets merged # waiting until the PR gets merged
(looking-glass-client.overrideAttrs (old: { (looking-glass-client.overrideAttrs (old: {
version = "B6"; version = "B6";

7
home/pkgs/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, ... }: {
lalrpop = pkgs.callPackage ./lalrpop { };
home-daemon = pkgs.callPackage ./home-daemon { };
rofi-steam-game-list = pkgs.callPackage ./rofi-steam-game-list { };
clang_latest = pkgs.clang_15;
clang-tools_latest = pkgs.clang-tools_15;
}

View file

@ -228,7 +228,7 @@ dependencies = [
] ]
[[package]] [[package]]
name = "dotfiles-home-daemon" name = "home-daemon"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"futures-util", "futures-util",

View file

@ -1,5 +1,5 @@
[package] [package]
name = "dotfiles-home-daemon" name = "home-daemon"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
rm -rf ./home ./system rm -rf ./home ./system
cp -r /etc/nixos ./system cp -r /etc/nixos ./system
cp -r ~/.config/nixpkgs ./home cp -r ~/.config/home-manager ./home
cp ~/.config/nixpkgs/overlays.nix ./overlays.nix