Compare commits
No commits in common. "bff5e9072134fab260d48b68bb98ca1673faf9fc" and "37833f942ac3162dab60e87479fdf37a297f00be" have entirely different histories.
bff5e90721
...
37833f942a
7 changed files with 7 additions and 33 deletions
|
@ -38,7 +38,6 @@
|
||||||
# This is a function that generates an attribute by calling a function you
|
# This is a function that generates an attribute by calling a function you
|
||||||
# pass to it, with each system as an argument
|
# pass to it, with each system as an argument
|
||||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
vars = import ./vars.nix;
|
|
||||||
in {
|
in {
|
||||||
# Your custom packages
|
# Your custom packages
|
||||||
# Accessible through 'nix build', 'nix shell', etc
|
# Accessible through 'nix build', 'nix shell', etc
|
||||||
|
@ -60,7 +59,7 @@
|
||||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
adalbert = nixpkgs.lib.nixosSystem {
|
adalbert = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs vars;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/adalbert
|
./hosts/adalbert
|
||||||
];
|
];
|
||||||
|
@ -72,7 +71,7 @@
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"ghoscht@adalbert" = home-manager.lib.homeManagerConfiguration {
|
"ghoscht@adalbert" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||||
extraSpecialArgs = {inherit inputs outputs vars;};
|
extraSpecialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./home/ghoscht/adalbert.nix
|
./home/ghoscht/adalbert.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
../common/global
|
../common/global
|
||||||
|
../common/users/ghoscht
|
||||||
../common/optional/desktop/awesome.nix
|
../common/optional/desktop/awesome.nix
|
||||||
|
|
||||||
../common/optional/systemd-boot.nix
|
../common/optional/systemd-boot.nix
|
||||||
../common/optional/wireshark.nix
|
../common/optional/wireshark.nix
|
||||||
../common/optional/gamemode.nix
|
../common/optional/gamemode.nix
|
||||||
../common/optional/kde-connect.nix
|
../common/optional/kde-connect.nix
|
||||||
../common/optional/gnome-keyring.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
|
@ -2,13 +2,11 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
./user.nix
|
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./locale.nix
|
./locale.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
services.logind.extraConfig = ''
|
services.logind.extraConfig = ''
|
||||||
# don't shutdown when power button is short-pressed
|
# don’t shutdown when power button is short-pressed
|
||||||
HandlePowerKey=ignore
|
HandlePowerKey=ignore
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
vars,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
in {
|
|
||||||
security.pam.services.${vars.user}.enableGnomeKeyring = true;
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
programs.seahorse.enable = true;
|
|
||||||
}
|
|
|
@ -1,15 +1,11 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
vars,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
in {
|
in {
|
||||||
imports = builtins.attrValues outputs.nixosModules; #propagates imports downwards
|
users.users.ghoscht = {
|
||||||
users.users.${vars.user} = {
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
extraGroups =
|
extraGroups =
|
||||||
|
@ -42,5 +38,5 @@ in {
|
||||||
packages = [pkgs.home-manager];
|
packages = [pkgs.home-manager];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${vars.user} = import ../../../home/${vars.user}/${config.networking.hostName}.nix;
|
home-manager.users.ghoscht = import ../../../../home/ghoscht/${config.networking.hostName}.nix;
|
||||||
}
|
}
|
7
vars.nix
7
vars.nix
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
# Global variables used in NixOS and HomeManager which will probably never change
|
|
||||||
user = "ghoscht";
|
|
||||||
location = "$HOME/.setup";
|
|
||||||
terminal = "alacritty";
|
|
||||||
editor = "nvim";
|
|
||||||
}
|
|
Loading…
Reference in a new issue