mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
tweaked file layout
This commit is contained in:
parent
d061dadb7e
commit
e1a608f3f8
9 changed files with 19 additions and 7 deletions
1
configuration.nix
Normal file
1
configuration.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# intentionally empty
|
||||||
|
|
@ -36,14 +36,14 @@
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./systems/gerg-laptop.nix
|
./systems/laptop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
gerg-desktop = lib.nixosSystem {
|
gerg-desktop = lib.nixosSystem {
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./systems/gerg-desktop.nix
|
./systems/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
owner = "ISnortPennies";
|
owner = "ISnortPennies";
|
||||||
repo = "user.js";
|
repo = "user.js";
|
||||||
rev = "master";
|
rev = "master";
|
||||||
sha256 = "BMEUZDelkcHDF8Yt9aa+3pGkGkodL7VEQ1hQBU6Fuug=";
|
sha256 = "9hmYqb5R8KOILNYylTspMr6CEmlLMg24JCGDFH0KA9k=";
|
||||||
} + "/user.js") );
|
} + "/user.js") );
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
nix.settings.auto-optimise-store = true;
|
||||||
networking = {
|
networking = {
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
useDHCP = lib.mkDefault true;
|
useDHCP = lib.mkDefault true;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ environment.systemPackages = with pkgs; [
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
dmenu
|
dmenu
|
||||||
qsudo
|
qsudo
|
||||||
|
mate.mate-polkit
|
||||||
flashfocus
|
flashfocus
|
||||||
pavucontrol
|
pavucontrol
|
||||||
gpick
|
gpick
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
{
|
{
|
||||||
output = "HDMI-0";
|
output = "HDMI-0";
|
||||||
primary = true;
|
primary = true;
|
||||||
|
monitorConfig = ''
|
||||||
|
DisplaySize 1920 1080
|
||||||
|
Option "DPMS" "false"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
screenSection = ''
|
screenSection = ''
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,10 @@ let
|
||||||
|
|
||||||
clean-store = pkgs.writeScriptBin "clean-store" ''
|
clean-store = pkgs.writeScriptBin "clean-store" ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
nix-collect-garbage -d
|
sudo nix-collect-garbage -d
|
||||||
nix-store --gc
|
sudo nix-store --optimise
|
||||||
|
sudo -u gerg nix-collect-garbage -d
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
apply-users = pkgs.writeScriptBin "apply-users" ''
|
apply-users = pkgs.writeScriptBin "apply-users" ''
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,10 @@
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
# end important stuff
|
# end important stuff
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
android-tools
|
||||||
|
openjdk
|
||||||
|
];
|
||||||
# user managment
|
# user managment
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.zsh;
|
defaultUserShell = pkgs.zsh;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue