Change configuration structure for second device

This commit is contained in:
thiloho
2023-05-10 19:59:21 +02:00
parent 1b8af651e4
commit 56ede7e44b
5 changed files with 43 additions and 10 deletions

View File

@@ -9,10 +9,23 @@
outputs = inputs@{ nixpkgs, home-manager, ... }: { outputs = inputs@{ nixpkgs, home-manager, ... }: {
nixosConfigurations = { nixosConfigurations = {
itachi = nixpkgs.lib.nixosSystem { pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./nixos-configurations/pc
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
}
];
};
laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos-configurations/laptop
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager = { home-manager = {

View File

@@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../shared.nix
];
networking.hostName = "laptop";
}

View File

@@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../shared.nix
];
services.xserver.windowManager.i3.extraSessionCommands = "xrandr --output DP-0 --left-of DP-4 --mode 1920x1080 --rate 144 --output DP-4 --mode 1920x1080 --rate 144";
networking.hostName = "pc";
}

View File

@@ -1,11 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports =
[
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@@ -13,8 +8,6 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.hostName = "itachi";
time.timeZone = "Europe/Amsterdam"; time.timeZone = "Europe/Amsterdam";
services = { services = {
@@ -23,7 +16,6 @@
videoDrivers = [ "nvidia" ]; videoDrivers = [ "nvidia" ];
windowManager.i3 = { windowManager.i3 = {
enable = true; enable = true;
extraSessionCommands = "xrandr --output DP-0 --left-of DP-4 --mode 1920x1080 --rate 144 --output DP-4 --mode 1920x1080 --rate 144";
}; };
}; };
pipewire = { pipewire = {
@@ -86,6 +78,9 @@
services.flameshot.enable = true; services.flameshot.enable = true;
home = { home = {
stateVersion = "22.11"; stateVersion = "22.11";
packages = with pkgs; [
zoom-us
];
}; };
}; };