Start separating home-manager from nixos config for better portability
This commit is contained in:
parent
7335a7c88e
commit
67db529222
|
@ -1,27 +1,17 @@
|
|||
{ ... }:
|
||||
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
./cachix.nix
|
||||
];
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home-manager.useUserPackages = false;
|
||||
home-manager.useGlobalPkgs = false;
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Enable power-profiles
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [home-manager];
|
||||
|
||||
|
||||
programs.ssh.startAgent = true;
|
||||
programs.fish.enable = true;
|
||||
programs.zsh = {
|
||||
|
|
|
@ -3,11 +3,13 @@
|
|||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.pavucontrol
|
||||
pkgs.pamixer
|
||||
pkgs.pulseaudio
|
||||
];
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# environment.systemPackages = [
|
||||
# pkgs.pavucontrol
|
||||
# pkgs.pamixer
|
||||
# pkgs.pulseaudio
|
||||
# ];
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
services.xserver.displayManager.defaultSession = "plasma";
|
||||
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./browser.nix ];
|
||||
programs.chromium.enable = true;
|
||||
programs.chromium.commandLineArgs = [
|
||||
"--enable-features=UseOzonePlatform"
|
||||
"--ozone-platform=wayland"
|
||||
|
|
|
@ -2,5 +2,4 @@
|
|||
{
|
||||
imports = [ ./common.nix ];
|
||||
programs.firefox.enable = true;
|
||||
programs.chromium.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./env/hyprland.nix
|
||||
./env/sway.nix
|
||||
./env/gtk.nix
|
||||
./env/xresources.nix
|
||||
./packages/env
|
||||
./packages/tui
|
||||
./packages/gui/browser.nix
|
||||
./packages/gui/cloud.nix
|
||||
./packages/gui/foot.nix
|
||||
./packages/gui/gaming.nix
|
||||
./packages/gui/kitty.nix
|
||||
./packages/gui/messaging.nix
|
||||
|
@ -21,10 +20,5 @@
|
|||
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";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
imports = [
|
||||
./common.nix
|
||||
./locales/en_GB.nix
|
||||
./desktop/hyprland.nix
|
||||
./desktop/plasma.nix
|
||||
];
|
||||
|
||||
networking.hostName = "Vanguard"; # Define your hostname.
|
||||
|
@ -31,7 +31,7 @@
|
|||
};
|
||||
|
||||
# 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
|
||||
# For Steam support
|
||||
|
|
Loading…
Reference in a new issue