Compare commits
2 Commits
e8c9cd32fd
...
2a3079f35e
Author | SHA1 | Date | |
---|---|---|---|
2a3079f35e | |||
687fd92a94 |
85
flake.nix
85
flake.nix
@ -9,8 +9,7 @@
|
|||||||
{
|
{
|
||||||
description = "Kabbone's peronal NixOS Flake config";
|
description = "Kabbone's peronal NixOS Flake config";
|
||||||
|
|
||||||
inputs = # All flake references used to build my NixOS setup. These are dependencies.
|
inputs = {
|
||||||
{
|
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Nix Packages
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Nix Packages
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
@ -47,28 +46,64 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
nixpkgs-unstable,
|
||||||
|
nixos-hardware,
|
||||||
|
home-manager,
|
||||||
|
home-manager-unstable,
|
||||||
|
agenix,
|
||||||
|
jovian-nixos,
|
||||||
|
microvm,
|
||||||
|
impermanence,
|
||||||
|
lanzaboote,
|
||||||
|
...
|
||||||
|
} @ inputs: rec {
|
||||||
|
inherit (self) outputs;
|
||||||
|
systems = [
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
|
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
|
#in {
|
||||||
|
# Your custom packages
|
||||||
|
# Accessible through 'nix build', 'nix shell', etc
|
||||||
|
packages = forAllSystems (system: import ./packages nixpkgs.legacyPackages.${system});
|
||||||
|
# Formatter for your nix files, available through 'nix fmt'
|
||||||
|
# Other options beside 'alejandra' include 'nixpkgs-fmt'
|
||||||
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||||
|
|
||||||
|
# Your custom packages and modifications, exported as overlays
|
||||||
|
overlays = import ./overlays {inherit inputs;};
|
||||||
|
# Reusable nixos modules you might want to export
|
||||||
|
# These are usually stuff you would upstream into nixpkgs
|
||||||
|
#nixosModules = import ./modules/kabbone;
|
||||||
|
# Reusable home-manager modules you might want to export
|
||||||
|
# These are usually stuff you would upstream into home-manager
|
||||||
|
#homeManagerModules = import ./modules/home-manager;
|
||||||
|
|
||||||
|
|
||||||
|
nixosConfigurations = ( # NixOS configurations
|
||||||
|
import ./hosts { # Imports ./hosts/default.nix
|
||||||
|
inherit (nixpkgs) lib;
|
||||||
|
inherit inputs nixpkgs nixpkgs-unstable nixos-hardware home-manager home-manager-unstable agenix jovian-nixos microvm impermanence lanzaboote; # Also inherit home-manager so it does not need to be defined here.
|
||||||
|
nix.allowedUsers = [ "@wheel" ];
|
||||||
|
security.sudo.execWheelOnly = true;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
hydraJobs = {
|
||||||
|
"steamdeck" = nixosConfigurations.steamdeck.config.system.build.toplevel;
|
||||||
|
"hades" = nixosConfigurations.hades.config.system.build.toplevel;
|
||||||
|
"nasbak" = nixosConfigurations.nasbak.config.system.build.toplevel;
|
||||||
|
"jupiter" = nixosConfigurations.jupiter.config.system.build.toplevel;
|
||||||
|
"lifebook" = nixosConfigurations.lifebook.config.system.build.toplevel;
|
||||||
|
"kabtop" = nixosConfigurations.kabtop.config.system.build.toplevel;
|
||||||
|
"dmz" = nixosConfigurations.dmz.config.system.build.toplevel;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, agenix, jovian-nixos, microvm, impermanence, lanzaboote, ... }: # Function that tells my flake which to use and what do what to do with the dependencies.
|
|
||||||
rec {
|
|
||||||
nixosConfigurations = ( # NixOS configurations
|
|
||||||
import ./hosts { # Imports ./hosts/default.nix
|
|
||||||
inherit (nixpkgs) lib;
|
|
||||||
inherit inputs nixpkgs nixpkgs-unstable nixos-hardware home-manager home-manager-unstable agenix jovian-nixos microvm impermanence lanzaboote; # Also inherit home-manager so it does not need to be defined here.
|
|
||||||
nix.allowedUsers = [ "@wheel" ];
|
|
||||||
security.sudo.execWheelOnly = true;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
hydraJobs = {
|
|
||||||
"steamdeck" = nixosConfigurations.steamdeck.config.system.build.toplevel;
|
|
||||||
"hades" = nixosConfigurations.hades.config.system.build.toplevel;
|
|
||||||
"nasbak" = nixosConfigurations.nasbak.config.system.build.toplevel;
|
|
||||||
"jupiter" = nixosConfigurations.jupiter.config.system.build.toplevel;
|
|
||||||
"lifebook" = nixosConfigurations.lifebook.config.system.build.toplevel;
|
|
||||||
"kabtop" = nixosConfigurations.kabtop.config.system.build.toplevel;
|
|
||||||
"dmz" = nixosConfigurations.dmz.config.system.build.toplevel;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
pam.services.login.enableGnomeKeyring = true;
|
||||||
rtkit.enable = true;
|
rtkit.enable = true;
|
||||||
pki.certificateFiles = [
|
pki.certificateFiles = [
|
||||||
./rootCA.pem
|
./rootCA.pem
|
||||||
@ -187,6 +188,9 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true; # Allow proprietary software.
|
nixpkgs.config.allowUnfree = true; # Allow proprietary software.
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"olm-3.2.16"
|
||||||
|
];
|
||||||
|
|
||||||
system = { # NixOS settings
|
system = { # NixOS settings
|
||||||
autoUpgrade = { # Allow auto update
|
autoUpgrade = { # Allow auto update
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
environment = {
|
environment = {
|
||||||
systemPackages = [
|
systemPackages = [
|
||||||
pkgs.linux-firmware
|
pkgs.linux-firmware
|
||||||
pkgs-kabbone.corosync-qdevice
|
#pkgs-kabbone.corosync-qdevice
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
thunderbird
|
thunderbird
|
||||||
streamlink
|
streamlink
|
||||||
streamlink-twitch-gui-bin
|
streamlink-twitch-gui-bin
|
||||||
element-desktop
|
|
||||||
#nheko
|
#nheko
|
||||||
pulsemixer
|
pulsemixer
|
||||||
#yubioath-flutter
|
#yubioath-flutter
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
vimiv-qt
|
vimiv-qt
|
||||||
freecad
|
freecad
|
||||||
discord
|
discord
|
||||||
|
nheko
|
||||||
|
|
||||||
# Fileanagement
|
# Fileanagement
|
||||||
kdePackages.ark
|
kdePackages.ark
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
thunderbird
|
thunderbird
|
||||||
streamlink
|
streamlink
|
||||||
streamlink-twitch-gui-bin
|
streamlink-twitch-gui-bin
|
||||||
element-desktop
|
|
||||||
intel-gpu-tools
|
intel-gpu-tools
|
||||||
pulsemixer
|
pulsemixer
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
thunderbird
|
thunderbird
|
||||||
streamlink
|
streamlink
|
||||||
streamlink-twitch-gui-bin
|
streamlink-twitch-gui-bin
|
||||||
element-desktop
|
|
||||||
pulsemixer
|
pulsemixer
|
||||||
#yuzu-early-access
|
#yuzu-early-access
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#./udiskie.nix
|
#./udiskie.nix
|
||||||
#./redshift.nix
|
#./redshift.nix
|
||||||
./kanshi.nix
|
./kanshi.nix
|
||||||
|
./keyring.nix
|
||||||
]
|
]
|
||||||
|
|
||||||
# picom, polybar and sxhkd are pulled from desktop module
|
# picom, polybar and sxhkd are pulled from desktop module
|
||||||
|
14
modules/services/keyring.nix
Normal file
14
modules/services/keyring.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Screenshots
|
||||||
|
#
|
||||||
|
|
||||||
|
{ pkgs, user, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services = { # sxhkd shortcut = Printscreen button (Print)
|
||||||
|
gnome-keyring = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
home.packages = with pkgs; [ gcr seahorse ];
|
||||||
|
}
|
@ -95,7 +95,7 @@
|
|||||||
#{ command = "exec ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
|
#{ command = "exec ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
|
||||||
{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
|
{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
|
||||||
{ command = "${pkgs.firefox}/bin/firefox"; }
|
{ command = "${pkgs.firefox}/bin/firefox"; }
|
||||||
{ command = "${pkgs.element-desktop}/bin/element-desktop"; }
|
{ command = "${pkgs.nheko}/bin/nheko"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
|
19
overlays/default.nix
Normal file
19
overlays/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{inputs, ...}: {
|
||||||
|
# This one brings our custom packages from the 'pkgs' directory
|
||||||
|
additions = final: _prev: import ../packages {pkgs = final;};
|
||||||
|
|
||||||
|
modifications = final: prev: {
|
||||||
|
mealie = final.unstable.mealie;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
|
||||||
|
# be accessible through 'pkgs.unstable'
|
||||||
|
unstable-packages = final: _prev: {
|
||||||
|
unstable = import inputs.nixpkgs-unstable {
|
||||||
|
system = final.system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
corosync-qdevice = pkgs.callPackage ./corosync-qdevice.nix {};
|
# corosync-qdevice = pkgs.callPackage ./corosync-qdevice.nix {};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user