seperated main PC and Laptop without NixOS
This commit is contained in:
parent
49a621b985
commit
6113c8891e
28
flake.nix
28
flake.nix
@ -36,12 +36,9 @@
|
|||||||
in {
|
in {
|
||||||
formatter.${system} = pkgs.alejandra;
|
formatter.${system} = pkgs.alejandra;
|
||||||
|
|
||||||
homeConfigurations = {
|
commonModules = [
|
||||||
kristian = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
./home.nix
|
./home.nix
|
||||||
|
|
||||||
{
|
{
|
||||||
_module.args.wallpaper = wallpaper.packages.${system}.default;
|
_module.args.wallpaper = wallpaper.packages.${system}.default;
|
||||||
}
|
}
|
||||||
@ -69,6 +66,27 @@
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
homeConfigurations = {
|
||||||
|
kristian = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
|
modules =
|
||||||
|
[
|
||||||
|
./pc.nix
|
||||||
|
]
|
||||||
|
++ self.commonModules;
|
||||||
|
};
|
||||||
|
|
||||||
|
laptop = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
|
modules =
|
||||||
|
self.commonModules
|
||||||
|
++ [
|
||||||
|
./laptop.nix
|
||||||
|
]
|
||||||
|
++ self.commonModules;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
3
home.nix
3
home.nix
@ -17,9 +17,6 @@
|
|||||||
# Keyboard Layout
|
# Keyboard Layout
|
||||||
home.keyboard.layout = "at";
|
home.keyboard.layout = "at";
|
||||||
|
|
||||||
# TODO Change for Laptop
|
|
||||||
targets.genericLinux.enable = false; # Enable on non-nixos ditros
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/bash.nix
|
./modules/bash.nix
|
||||||
./modules/direnv.nix
|
./modules/direnv.nix
|
||||||
|
11
laptop.nix
Normal file
11
laptop.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{...}: {
|
||||||
|
config.targets.genericLinux.enable = true;
|
||||||
|
|
||||||
|
# Changes specific to the laptop
|
||||||
|
config.dconf.settings = {
|
||||||
|
"org/gnome/settings-daemon/plugins/power" = {
|
||||||
|
sleep-inactive-ac-type = "nothing";
|
||||||
|
power-button-action = "nothing";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -73,11 +73,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"org/gnome/settings-daemon/plugins/power" = {
|
|
||||||
sleep-inactive-ac-type = "nothing"; # Automatic suspend/hibernation creates a suspend/hibernation loop
|
|
||||||
power-button-action = "suspend";
|
|
||||||
};
|
|
||||||
|
|
||||||
"org/gnome/mutter" = {
|
"org/gnome/mutter" = {
|
||||||
edge-tiling = true;
|
edge-tiling = true;
|
||||||
dynamic-workspaces = true;
|
dynamic-workspaces = true;
|
||||||
|
@ -34,10 +34,6 @@
|
|||||||
|
|
||||||
# Creative software
|
# Creative software
|
||||||
gimp
|
gimp
|
||||||
davinci-resolve
|
|
||||||
|
|
||||||
# Games
|
|
||||||
osu-lazer
|
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
comma # Run any binary from the repos with a comma `, cowsay neato`
|
comma # Run any binary from the repos with a comma `, cowsay neato`
|
||||||
|
18
pc.nix
Normal file
18
pc.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
config.targets.genericLinux.enable = false;
|
||||||
|
|
||||||
|
# Changes specific to the PC
|
||||||
|
config.home.packages = with pkgs; [
|
||||||
|
davinci-resolve
|
||||||
|
|
||||||
|
# Games
|
||||||
|
osu-lazer
|
||||||
|
];
|
||||||
|
|
||||||
|
config.dconf.settings = {
|
||||||
|
"org/gnome/settings-daemon/plugins/power" = {
|
||||||
|
sleep-inactive-ac-type = "nothing"; # Automatic suspend/hibernation creates a suspend/hibernation loop
|
||||||
|
power-button-action = "suspend";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user