Start separating home-manager from nixos config for better portability

This commit is contained in:
Evie Litherland-Smith 2023-04-18 07:54:29 +01:00
parent 7335a7c88e
commit 67db529222
7 changed files with 17 additions and 30 deletions

View file

@ -1,27 +1,17 @@
{ ... }: { pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{ {
imports = [
(import "${home-manager}/nixos")
./cachix.nix
];
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
home-manager.useUserPackages = false;
home-manager.useGlobalPkgs = false;
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# Enable power-profiles # Enable power-profiles
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;
environment.systemPackages = with pkgs; [home-manager];
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
programs.fish.enable = true; programs.fish.enable = true;
programs.zsh = { programs.zsh = {

View file

@ -3,11 +3,13 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
environment.systemPackages = [ programs.dconf.enable = true;
pkgs.pavucontrol
pkgs.pamixer # environment.systemPackages = [
pkgs.pulseaudio # pkgs.pavucontrol
]; # pkgs.pamixer
# pkgs.pulseaudio
# ];
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = true; sound.enable = true;

View file

@ -9,6 +9,7 @@
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.defaultSession = "plasma";
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ./browser.nix ]; imports = [ ./browser.nix ];
programs.chromium.enable = true;
programs.chromium.commandLineArgs = [ programs.chromium.commandLineArgs = [
"--enable-features=UseOzonePlatform" "--enable-features=UseOzonePlatform"
"--ozone-platform=wayland" "--ozone-platform=wayland"

View file

@ -2,5 +2,4 @@
{ {
imports = [ ./common.nix ]; imports = [ ./common.nix ];
programs.firefox.enable = true; programs.firefox.enable = true;
programs.chromium.enable = true;
} }

View file

@ -1,12 +1,11 @@
{ ... }: { { ... }: {
imports = [ imports = [
./env/hyprland.nix ./env/gtk.nix
./env/sway.nix ./env/xresources.nix
./packages/env ./packages/env
./packages/tui ./packages/tui
./packages/gui/browser.nix ./packages/gui/browser.nix
./packages/gui/cloud.nix ./packages/gui/cloud.nix
./packages/gui/foot.nix
./packages/gui/gaming.nix ./packages/gui/gaming.nix
./packages/gui/kitty.nix ./packages/gui/kitty.nix
./packages/gui/messaging.nix ./packages/gui/messaging.nix
@ -21,10 +20,5 @@
userEmail = "evie@xenia.me.uk"; userEmail = "evie@xenia.me.uk";
}; };
wayland.windowManager.hyprland.extraConfig =
builtins.readFile (./env/config/hypr/macchiato.conf) + "\n"
+ builtins.readFile (./env/config/hypr/hyprland.conf) + "\n"
+ builtins.readFile (./env/config/hypr/hyprland-vanguard.conf);
home.stateVersion = "22.11"; home.stateVersion = "22.11";
} }

View file

@ -4,7 +4,7 @@
imports = [ imports = [
./common.nix ./common.nix
./locales/en_GB.nix ./locales/en_GB.nix
./desktop/hyprland.nix ./desktop/plasma.nix
]; ];
networking.hostName = "Vanguard"; # Define your hostname. networking.hostName = "Vanguard"; # Define your hostname.
@ -31,7 +31,7 @@
}; };
# Set up home manager for user # Set up home manager for user
home-manager.users.xenia = import ./home-manager/vanguard-xenia.nix; # home-manager.users.xenia = import ./home-manager/vanguard-xenia.nix;
# Extra hardware configuration # Extra hardware configuration
# For Steam support # For Steam support