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 = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "rpool/root/nixos";
|
device = "rpool/root/nixos";
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
boot.supportedFilesystems = ["zfs"];
|
boot.supportedFilesystems = ["zfs"];
|
||||||
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
bandwhich
|
bandwhich
|
||||||
btop
|
btop
|
||||||
colorcheck
|
|
||||||
fd
|
fd
|
||||||
kalker
|
kalker
|
||||||
neofetch
|
neofetch
|
||||||
|
|
|
@ -22,6 +22,7 @@ with lib; {
|
||||||
#impermanence.home-manager.impermanence
|
#impermanence.home-manager.impermanence
|
||||||
./core
|
./core
|
||||||
./dev
|
./dev
|
||||||
|
./modules
|
||||||
#]
|
#]
|
||||||
#++ optionals config.programs.sway.enable [
|
#++ optionals config.programs.sway.enable [
|
||||||
# ./graphical
|
# ./graphical
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home = {
|
home = {
|
||||||
extraOutputsToInstall = ["doc" "devdoc"];
|
extraOutputsToInstall = ["doc" "devdoc"];
|
||||||
file.gdbinit = {
|
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