minor changes
This commit is contained in:
parent
34d654d434
commit
fcf9992b3e
@ -53,6 +53,7 @@
|
|||||||
android-tools android-udev-rules;
|
android-tools android-udev-rules;
|
||||||
})
|
})
|
||||||
inputs.hyprwm-contrib.overlays.default
|
inputs.hyprwm-contrib.overlays.default
|
||||||
|
inputs.rust-overlay.overlays.default
|
||||||
];
|
];
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
@ -7,7 +7,7 @@ in
|
|||||||
enable = lib.mkEnableOption "communication package set";
|
enable = lib.mkEnableOption "communication package set";
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; lib.optionals config.nixfiles.graphical [
|
home.packages = with pkgs; lib.optionals config.nixfiles.meta.graphical [
|
||||||
( if config.nixfiles.meta.wayland then element-desktop-wayland else element-desktop )
|
( if config.nixfiles.meta.wayland then element-desktop-wayland else element-desktop )
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
@ -9,7 +9,7 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
rg
|
ripgrep
|
||||||
fd
|
fd
|
||||||
bat
|
bat
|
||||||
|
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./base.nix
|
./base.nix
|
||||||
|
./pc.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
22
home/profile/pc.nix
Normal file
22
home/profile/pc.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ pkgs, config, osConfig ? {}, lib, ...}:
|
||||||
|
let
|
||||||
|
cfg = config.nixfiles.profile.pc;
|
||||||
|
default = osConfig ? nixfiles && osConfig.nixfiles.profile.pc.enable;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.nixfiles.profile.pc.enable = lib.mkOption {
|
||||||
|
description = "Whether to enable the personal computer profile";
|
||||||
|
type = lib.types.bool;
|
||||||
|
inherit default;
|
||||||
|
example = true;
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
nixfiles = {
|
||||||
|
profile.base.enable = true;
|
||||||
|
packageSets = {
|
||||||
|
communication.enable = true;
|
||||||
|
dev.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user