Add build target to Makefile, reorganise some definitions

This commit is contained in:
Evie Litherland-Smith 2023-06-28 13:33:12 +01:00
parent 7b5fd0570c
commit 151c317845
5 changed files with 14 additions and 12 deletions

View file

@ -1,13 +1,15 @@
.PHONY: default test lock
.PHONY: default test build lock
default:
sudo nixos-rebuild switch --flake .
test:
git -C . add .
sudo nixos-rebuild test --flake .
build:
sudo nixos-rebuild build --flake .
lock:
nix flake lock --update-input nixpkgs --update-input home-manager
git -C . add flake.lock
git add flake.lock
nix flake archive

View file

@ -74,7 +74,6 @@
./home/desktop/hyprland.nix
./home/gui
];
programs.firefox.package = pkgs.firefox-wayland;
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${wallpapers.outputs.default}
wallpaper = ,${wallpapers.outputs.default}

View file

@ -10,6 +10,7 @@
./dunst.nix
./rofi.nix
];
programs.firefox.package = pkgs.firefox-wayland;
programs.rofi.package = pkgs.rofi-wayland;
wayland.windowManager.hyprland = {
enable = true;

View file

@ -7,14 +7,7 @@
in {
imports = [./default.nix];
home-manager.users.elitherl = {
home.packages = with pkgs; [
zotero
openfortivpn
nomachine-client
teams-for-linux
zoom-us
laptop-state
];
home.packages = [laptop-state];
wayland.windowManager.hyprland.extraConfig = ''
source=./common.conf
monitor = eDP-1,1920x1080,0x0,1.0

View file

@ -11,6 +11,13 @@
username = "elitherl";
homeDirectory = "/home/elitherl";
stateVersion = "22.11";
packages = with pkgs; [
zotero
openfortivpn
nomachine-client
teams-for-linux
zoom-us
];
};
};
}