Compare commits
No commits in common. "bb7c74da4b08fbd1a8553dfb7f16dd53d7487063" and "c7b36578f6da6ec8592b8548f9fbfca8a3b44609" have entirely different histories.
bb7c74da4b
...
c7b36578f6
|
@ -1 +0,0 @@
|
|||
result
|
1141
default.nix
1141
default.nix
File diff suppressed because it is too large
Load Diff
1124
merged.nix
1124
merged.nix
File diff suppressed because it is too large
Load Diff
12
system.nix
12
system.nix
|
@ -1,12 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
custom.laptop = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether the current system is a laptop.";
|
||||
};
|
||||
};
|
||||
}
|
11
test.nix
11
test.nix
|
@ -1,11 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
custom.users.jan = {
|
||||
enable = true;
|
||||
sudo = true;
|
||||
configuration = ./users/jan.nix;
|
||||
};
|
||||
};
|
||||
}
|
46
users.nix
46
users.nix
|
@ -1,46 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
userModule = lib.types.submodule {
|
||||
options = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether the user is enabled.";
|
||||
};
|
||||
sudo = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether the user is allowed sudo access.";
|
||||
};
|
||||
configuration = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = ./users/base.nix;
|
||||
description = "What home manager configuration to use for this user.";
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
custom.users = lib.mkOption {
|
||||
type = lib.types.attrsOf userModule;
|
||||
default = {};
|
||||
description = "Users configured on this system.";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
users.users = lib.attrsets.concatMapAttrs (name: value: {
|
||||
${name} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = lib.mkIf value.sudo [ "wheel" ];
|
||||
};
|
||||
}) config.custom.users;
|
||||
|
||||
home-manager.users = lib.attrsets.concatMapAttrs (name: value: {
|
||||
${name} = value.configuration;
|
||||
}) config.custom.users;
|
||||
};
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Import all modules
|
||||
./modules/default.nix
|
||||
];
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Import base configuration
|
||||
./base.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
modules.zathura.enable = true;
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ input, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
# Set the state version
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
imports = [
|
||||
./tools/zathura/default.nix
|
||||
];
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.modules.zathura;
|
||||
in {
|
||||
options.modules.zathura.enable = lib.mkEnableOption "zathura";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
|
||||
options = {
|
||||
guioptions = "none";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue