Compare commits

..

No commits in common. "508907c589a790b11d1e6dafaea92043ff9dda87" and "221a6e4551f98cf68d14b9172e300d1b4ccc7681" have entirely different histories.

3 changed files with 27 additions and 20 deletions

View file

@ -1,8 +1,19 @@
.PHONY: build copy .PHONY: default build test switch boot copy
default: build
build: build:
nixos-rebuild build --flake . --show-trace nixos-rebuild build --flake . --show-trace
test:
sudo nixos-rebuild test --flake . --show-trace
switch:
sudo nixos-rebuild switch --flake . --show-trace
boot:
sudo nixos-rebuild boot --flake . --show-trace
copy: build copy: build
nix copy --to ssh://pixelifytica@legion ./result nix copy --to ssh://legion ./result
rm ./result rm ./result

View file

@ -1,5 +1,4 @@
{ {
config,
lib, lib,
pkgs, pkgs,
... ...
@ -84,15 +83,11 @@
dbus.packages = with pkgs; [gcr]; dbus.packages = with pkgs; [gcr];
greetd = { greetd = {
enable = true; enable = true;
settings = { settings = let
default_session.command = '' command = "sway";
${pkgs.greetd.tuigreet}/bin/tuigreet --time\ in {
--remember\ initial_session = {inherit command;};
--remember-user-session\ default_session = {inherit command;};
--user-menu\
--asterisks\
--window-padding 10
'';
}; };
}; };
pipewire = { pipewire = {

View file

@ -30,7 +30,7 @@
}; };
defaultModules = { defaultModules = {
hostName ? "Atlas", hostName ? "Atlas",
userName ? "pixelifytica", primaryUser ? "pixelifytica",
loginShell ? "zsh", loginShell ? "zsh",
... ...
}: [ }: [
@ -45,7 +45,7 @@
}: { }: {
networking = {inherit hostName;}; networking = {inherit hostName;};
nix = { nix = {
settings.trusted-users = [userName]; settings.trusted-users = [primaryUser];
registry = { registry = {
my-nixos = { my-nixos = {
from = { from = {
@ -69,8 +69,9 @@
}; };
}; };
}; };
services.greetd.settings.initial_session.user = primaryUser;
programs.${loginShell}.enable = true; programs.${loginShell}.enable = true;
users.users.${userName} = { users.users.${primaryUser} = {
shell = pkgs.${loginShell}; shell = pkgs.${loginShell};
group = "users"; group = "users";
isNormalUser = true; isNormalUser = true;
@ -95,7 +96,7 @@
specialArgs = defaultSpecialArgs {inherit system;}; specialArgs = defaultSpecialArgs {inherit system;};
modules = defaultModules { modules = defaultModules {
hostName = "Legion"; hostName = "Legion";
userName = "pixelifytica"; primaryUser = "pixelifytica";
loginShell = "zsh"; loginShell = "zsh";
}; };
}; };
@ -105,7 +106,7 @@
specialArgs = defaultSpecialArgs {inherit system;}; specialArgs = defaultSpecialArgs {inherit system;};
modules = defaultModules { modules = defaultModules {
hostName = "Northstar"; hostName = "Northstar";
userName = "pixelifytica"; primaryUser = "pixelifytica";
loginShell = "zsh"; loginShell = "zsh";
}; };
}; };
@ -114,7 +115,7 @@
specialArgs = defaultSpecialArgs {inherit system;}; specialArgs = defaultSpecialArgs {inherit system;};
modules = defaultModules { modules = defaultModules {
hostName = "Vanguard"; hostName = "Vanguard";
userName = "pixelifytica"; primaryUser = "pixelifytica";
loginShell = "zsh"; loginShell = "zsh";
}; };
}; };
@ -124,7 +125,7 @@
specialArgs = defaultSpecialArgs {inherit system;}; specialArgs = defaultSpecialArgs {inherit system;};
modules = defaultModules { modules = defaultModules {
hostName = "Tone"; hostName = "Tone";
userName = "elitherl"; primaryUser = "elitherl";
loginShell = "zsh"; loginShell = "zsh";
}; };
}; };
@ -133,7 +134,7 @@
specialArgs = defaultSpecialArgs {inherit system;}; specialArgs = defaultSpecialArgs {inherit system;};
modules = defaultModules { modules = defaultModules {
hostName = "Scorch"; hostName = "Scorch";
userName = "elitherl"; primaryUser = "elitherl";
loginShell = "zsh"; loginShell = "zsh";
}; };
}; };