Initial commit
This commit is contained in:
44
home/profiles/desktop.nix
Normal file
44
home/profiles/desktop.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.samfelag.profiles.desktop;
|
||||
laptopPkgs = with pkgs; [
|
||||
];
|
||||
in
|
||||
{
|
||||
options.samfelag.profiles.desktop = {
|
||||
enable = mkEnableOption "desktop profile";
|
||||
laptop = mkOption {
|
||||
description = "Add packages required when machine is a laptop";
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
# - Dependencies -----------------------------
|
||||
|
||||
samfelag.modules = {
|
||||
desktop.i3 = {
|
||||
enable = true;
|
||||
launcher.command = "${pkgs.rofi}/bin/rofi rofi -show run";
|
||||
terminal.command = "${pkgs.alacritty}/bin/alacritty";
|
||||
browser.command = "${pkgs.firefox}/bin/firefox";
|
||||
};
|
||||
|
||||
app.alacritty.enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
rofi
|
||||
firefox
|
||||
|
||||
brightnessctl
|
||||
playerctl
|
||||
feh
|
||||
] ++ optionals cfg.laptop laptopPkgs;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user