treewide: refactor
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "tami-mac";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Asia/Jerusalem";
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
};
|
||||
hardware.pulseaudio.enable = false;
|
||||
sound.enable = false;
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
programs.vim.defaultEditor = true;
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users."tami" = {
|
||||
isNormalUser = true;
|
||||
hashedPassword = "$y$j9T$BUWA7o2/xFFY6g/B9somr1$rveo/ttShW7jd835kf2pE9vAfDIXj/Hii3B5c9GyCjA";
|
||||
openssh.authorizedKeys.keys = [
|
||||
# Kranzes/Ilan
|
||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIBF2qWuvMCuJMlc6+ehyU0V/asmfAlT5/GLhUQqbpQ/bAAAABHNzaDo="
|
||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIEVpaQ0K0Fzz0Hu48pqKiI25lr9ASwXR1yzYbeErBX/2AAAABHNzaDo="
|
||||
];
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
uid = 1000;
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
git
|
||||
wget
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.plasma5.enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "plasmawayland";
|
||||
lightdm.enable = true;
|
||||
autoLogin.user = "tami";
|
||||
};
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
programs.xwayland.enable = true;
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
programs.adb.enable = true;
|
||||
}
|
||||
@@ -1,21 +1,14 @@
|
||||
inputs:
|
||||
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
let inherit (inputs.nixpkgs) lib; in
|
||||
|
||||
lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
modules = builtins.filter (x: lib.hasSuffix ".nix" x && baseNameOf x != "default.nix") (lib.filesystem.listFilesRecursive ./.) ++ [
|
||||
inputs.disko.nixosModules.disko
|
||||
"${inputs.self}/profiles/nix-nixpkgs.nix"
|
||||
"${inputs.self}/profiles/ssh.nix"
|
||||
{
|
||||
_module.args.nixinate = {
|
||||
host = "tami-mac";
|
||||
sshUser = "tami";
|
||||
buildOn = "remote";
|
||||
substituteOnTarget = true;
|
||||
hermetic = false;
|
||||
};
|
||||
}
|
||||
{ system.stateVersion = "23.05"; }
|
||||
];
|
||||
}
|
||||
|
||||
21
hosts/tami-mac/graphical.nix
Normal file
21
hosts/tami-mac/graphical.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.plasma5.enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "plasmawayland";
|
||||
lightdm.enable = true;
|
||||
autoLogin.user = "tami";
|
||||
};
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
programs.xwayland.enable = true;
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
device = "/dev/sda";
|
||||
in
|
||||
{
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
|
||||
disko.devices = {
|
||||
disk.${baseNameOf device} = {
|
||||
inherit device;
|
||||
8
hosts/tami-mac/networking.nix
Normal file
8
hosts/tami-mac/networking.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
networking = {
|
||||
hostName = "tami-mac";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Asia/Jerusalem";
|
||||
}
|
||||
8
hosts/tami-mac/packages.nix
Normal file
8
hosts/tami-mac/packages.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
tree
|
||||
];
|
||||
}
|
||||
8
hosts/tami-mac/programs.nix
Normal file
8
hosts/tami-mac/programs.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs = {
|
||||
vim.defaultEditor = true;
|
||||
firefox.enable = true;
|
||||
git.enable = true;
|
||||
adb.enable = true;
|
||||
};
|
||||
}
|
||||
20
hosts/tami-mac/users.nix
Normal file
20
hosts/tami-mac/users.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
{
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users."tami" = {
|
||||
isNormalUser = true;
|
||||
hashedPassword = "$y$j9T$BUWA7o2/xFFY6g/B9somr1$rveo/ttShW7jd835kf2pE9vAfDIXj/Hii3B5c9GyCjA";
|
||||
openssh.authorizedKeys.keys = [
|
||||
# Kranzes/Ilan
|
||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIBF2qWuvMCuJMlc6+ehyU0V/asmfAlT5/GLhUQqbpQ/bAAAABHNzaDo="
|
||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIEVpaQ0K0Fzz0Hu48pqKiI25lr9ASwXR1yzYbeErBX/2AAAABHNzaDo="
|
||||
];
|
||||
extraGroups = [ "wheel" ]
|
||||
++ lib.optional config.networking.networkmanager.enable "networkmanager"
|
||||
++ lib.optional config.programs.adb.enable "adbusers";
|
||||
uid = 1000;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user