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:
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
nix copy --to ssh://pixelifytica@legion ./result
nix copy --to ssh://legion ./result
rm ./result

View file

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

View file

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