reaarrange again

This commit is contained in:
Daylin Morgan 2024-01-28 16:40:33 -06:00
parent c462c12e91
commit 6f00b5f93c
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
15 changed files with 51 additions and 47 deletions

View file

@ -5,25 +5,30 @@
...
}: {
imports = with inputs.self.nixosModules; [
desktop
# hyprland
nix-ld
virtualbox
restic
];
programs.hyprland.enable = true;
services.vpn.enable = true;
cli.enable = true;
desktop.enable = true;
languages = {
languages = {
misc = true;
python = true;
nim = true;
tex = true;
node = true;
};
cli.enable = true;
environment.systemPackages = with pkgs; [
zk
rclone
quarto
];
programs.hyprland.enable = true;
services.vpn.enable = true;
services.restic.backups.gdrive = {
user = "daylin";
@ -32,30 +37,12 @@
paths = ["/home/daylin/stuff/" "/home/daylin/dev/"];
};
environment.systemPackages = with pkgs; [
zk
rclone
quarto
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
users.users.daylin.extraGroups = [
"video" # backlight control via light
"audio"
];
# users.users.daylin = {
# isNormalUser = true;
# shell = pkgs.zsh;
# extraGroups = [
# "wheel" # sudo
# "video" # backlight control via light
# "audio"
# ];
# };
}

View file

@ -27,7 +27,7 @@ in rec {
nixosSystem {
system = "x86_64-linux";
modules =
[../modules/roles/common.nix]
[../modules/common.nix]
++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
specialArgs = {inherit inputs;};
};

View file

@ -1,4 +1,4 @@
{inputs, ...}: {
{inputs, lib, ...}: {
imports = with inputs.self.nixosModules; [
users
nix
@ -7,6 +7,16 @@
nvim
vpn
# gui
fonts
lock
qtile
hyprland
gui
vscode
# langs
python
misc
@ -14,4 +24,7 @@
tex
nim
];
options.desktop.enable = lib.mkEnableOption "is desktop";
}

17
modules/desktop/fonts.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs,
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf;
cfg = config.desktop;
in {
config = mkIf cfg.enable {
fonts.fontconfig.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode"];})
];
};
}

View file

@ -1,8 +1,14 @@
{
inputs,
pkgs,
config,
lib,
...
}: {
}: let
inherit (lib) mkIf;
cfg = config.desktop;
in {
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
inputs.wezterm.packages.${pkgs.system}.default
alacritty
@ -20,4 +26,5 @@
proprietaryCodecs = true;
})
];
};
}

View file

@ -1,6 +0,0 @@
{pkgs, ...}: {
fonts.fontconfig.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode"];})
];
}

View file

@ -1,14 +0,0 @@
{
inputs,
config,
lib,
...
}: {
imports = with inputs.self.nixosModules; [
fonts
gui
lock
vscode
hyprland
];
}