mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
move config to better places
This commit is contained in:
parent
ddb7df4a4e
commit
9b60bc1988
|
@ -4,7 +4,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.my.desktop;
|
isEnabled = config.my.desktop.enable;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
|
@ -14,10 +14,7 @@ in {
|
||||||
|
|
||||||
options.my.desktop.enable = lib.mkEnableOption "desktop";
|
options.my.desktop.enable = lib.mkEnableOption "desktop";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf isEnabled {
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# Enable the X11 windowing system / wayland depending on DE
|
# Enable the X11 windowing system / wayland depending on DE
|
||||||
xserver.enable = true;
|
xserver.enable = true;
|
||||||
|
@ -49,11 +46,6 @@ in {
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
git.package = pkgs.gitFull;
|
git.package = pkgs.gitFull;
|
||||||
steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# unblock kde connect / gsconnect
|
# unblock kde connect / gsconnect
|
||||||
|
@ -89,8 +81,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
pathsToLink = ["/share/zsh"];
|
|
||||||
|
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
lm_sensors
|
lm_sensors
|
||||||
];
|
];
|
||||||
|
|
|
@ -17,7 +17,6 @@ in {
|
||||||
wineWowPackages.stagingFull
|
wineWowPackages.stagingFull
|
||||||
wineWowPackages.fonts
|
wineWowPackages.fonts
|
||||||
winetricks
|
winetricks
|
||||||
steam
|
|
||||||
|
|
||||||
(lutris.override {
|
(lutris.override {
|
||||||
extraPkgs = pkgs: [
|
extraPkgs = pkgs: [
|
||||||
|
@ -28,5 +27,13 @@ in {
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,10 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf enableHomeManager {
|
config = lib.mkIf enableHomeManager {
|
||||||
home-manager.sharedModules = [
|
home-manager = {
|
||||||
|
useUserPackages = true;
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
sharedModules = [
|
||||||
# set stateVersion
|
# set stateVersion
|
||||||
{home.stateVersion = "22.11";}
|
{home.stateVersion = "22.11";}
|
||||||
# make nano the default editor
|
# make nano the default editor
|
||||||
|
@ -66,4 +69,5 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
prettylog = "log --pretty=oneline --graph";
|
prettylog = "log --pretty=oneline --graph";
|
||||||
|
spring-clean = "!git branch --merged | xargs -n 1 -r git branch -d";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
Loading…
Reference in a new issue