mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib, config, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(lib.getUser "nixos" "nixos")
|
|
];
|
|
|
|
isoImage = {
|
|
isoBaseName = config.networking.hostName;
|
|
|
|
# Put the source code somewhere easy to see.
|
|
contents = [{
|
|
source = inputs.self;
|
|
target = "/etc/nixos";
|
|
}];
|
|
};
|
|
|
|
# We'll be using NetworkManager with the desktop environment anyways.
|
|
networking.wireless.enable = false;
|
|
|
|
# Use my desktop environment configuration without the apps just to make the
|
|
# closure size smaller.
|
|
workflows.workflows.a-happy-gnome = {
|
|
enable = true;
|
|
extraApps = [ ];
|
|
};
|
|
|
|
# Some niceties.
|
|
profiles = {
|
|
desktop.enable = true;
|
|
dev.enable = true;
|
|
};
|
|
|
|
services.xserver.displayManager = {
|
|
gdm = {
|
|
enable = true;
|
|
autoSuspend = false;
|
|
};
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "nixos";
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
loader.systemd-boot.enable = true;
|
|
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
|
|
};
|
|
|
|
users.users.root.password = "";
|
|
|
|
}
|