mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
chore: follow linter
This commit is contained in:
parent
4db499a5d3
commit
63abd85eb0
7 changed files with 35 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
{config, ...}: {
|
||||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "rpool/root/nixos";
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
boot.supportedFilesystems = ["zfs"];
|
||||
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
packages = with pkgs; [
|
||||
bandwhich
|
||||
btop
|
||||
colorcheck
|
||||
fd
|
||||
kalker
|
||||
neofetch
|
||||
|
|
|
@ -22,6 +22,7 @@ with lib; {
|
|||
#impermanence.home-manager.impermanence
|
||||
./core
|
||||
./dev
|
||||
./modules
|
||||
#]
|
||||
#++ optionals config.programs.sway.enable [
|
||||
# ./graphical
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
home = {
|
||||
extraOutputsToInstall = ["doc" "devdoc"];
|
||||
file.gdbinit = {
|
||||
|
|
5
users/myuser/modules/default.nix
Normal file
5
users/myuser/modules/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./uid.nix
|
||||
];
|
||||
}
|
22
users/myuser/modules/uid.nix
Normal file
22
users/myuser/modules/uid.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
options = {
|
||||
home.uid = mkOption {
|
||||
type = types.int;
|
||||
example = 1000;
|
||||
description = "The user's uid.";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.home.uid != "";
|
||||
message = "UID could not be determined";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue